Recent

Author Topic: Free Pascal needs STL!  (Read 7125 times)

moskalenco_a

  • New Member
  • *
  • Posts: 19
Free Pascal needs STL!
« on: May 02, 2015, 10:20:44 pm »
Hi, all. I am a beginner programmer. I learn Pascal and C++. I love Pascal because it's not so difficult. I love C++ too but it's much more difficult. But there is one very good thing in C++  -  STL.Iterators,many standart algorithms,containers...In Pascal there isn't vector,for example. But I think it's not a big problem. How about making STL in FPC? There is one library but it's not standart.
https://code.google.com/p/stlpascal/downloads/detail?name=stlpascal.zip&can=2&q=
And I think it can be better. I am writing this because most people hate Pascal because of there is not so good standart library...

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: Free Pascal needs STL!
« Reply #1 on: May 02, 2015, 10:52:33 pm »
There's fcl-stl libraly (somewhere around) which AFAIR contains vector (and other generic (template) structures). I don't have personal experience, I use FGL instead, which comes with freepascal.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Free Pascal needs STL!
« Reply #2 on: May 03, 2015, 02:49:53 am »
There is one library but it's not standart.
It's been part of fpc since a couple of months ago, should be in the next release. trunk users already enjoy it for some time.

moskalenco_a

  • New Member
  • *
  • Posts: 19
Re: Free Pascal needs STL!
« Reply #3 on: May 03, 2015, 06:44:00 pm »
But in Delphi it's more beautiful and better. Templater are like in C++.
http://docwiki.embarcadero.com/Libraries/XE7/en/System.Generics.Collections

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Free Pascal needs STL!
« Reply #4 on: May 04, 2015, 07:41:35 am »
But in Delphi it's more beautiful and better. Templater are like in C++.
http://docwiki.embarcadero.com/Libraries/XE7/en/System.Generics.Collections
Well, there's another attempt to mimic that Generics.Collections, donated by Free Sparta creator when shutting the project down, no idea about the current status though, go google. Beautiful and better is not a quantitative indicator, use your programmer's mind when talking about programming stuff.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11453
  • FPC developer.
Re: Free Pascal needs STL!
« Reply #5 on: May 04, 2015, 09:52:17 am »
Sven is still testing and working through generics implementation details.

IIRC he wanted to avoid to commit this library, and then find out it relied on implementation specific details.

 

TinyPortal © 2005-2018