Recent

Author Topic: Generics.collections documentation  (Read 2252 times)

julkas

  • Guest
Generics.collections documentation
« on: July 22, 2019, 06:06:41 pm »
Where I can find generics.collections documentation?
« Last Edit: July 22, 2019, 06:20:18 pm by julkas »

Thaddy

  • Hero Member
  • *****
  • Posts: 14197
  • Probably until I exterminate Putin.
Re: Generics.collections documentation
« Reply #1 on: July 22, 2019, 06:35:59 pm »
embarcadero.com ? The interface is 99% compatible with Delphi, so you can use that as a guideline.
This helps: http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate1/EN/pdf/genericcollections.pdf
Most if not all of the example code in that pdf works in Freepascal too....

The Freepascal version of generics.collections has more options than Delphi, but I guess you have to familiarize yourself with the sourcecode on how to use those extra's.
Beginners and intermediates won't use most of those extra's anyway.(way too low-level) But there are some gems for everybody too.
« Last Edit: July 22, 2019, 06:48:48 pm by Thaddy »
Specialize a type, not a var.

julkas

  • Guest
Re: Generics.collections documentation
« Reply #2 on: July 23, 2019, 02:58:30 pm »
@Thaddy Thanks.

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: Generics.collections documentation
« Reply #3 on: July 24, 2019, 08:25:24 am »
embarcadero.com ? The interface is 99% compatible with Delphi, so you can use that as a guideline.
This helps: http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate1/EN/pdf/genericcollections.pdf
Most if not all of the example code in that pdf works in Freepascal too....

The Freepascal version of generics.collections has more options than Delphi, but I guess you have to familiarize yourself with the sourcecode on how to use those extra's.
Beginners and intermediates won't use most of those extra's anyway.(way too low-level) But there are some gems for everybody too.

Thanks a million for the tip and the link Thaddy.

JD
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

julkas

  • Guest
Re: Generics.collections documentation
« Reply #4 on: July 24, 2019, 04:26:16 pm »

Thaddy

  • Hero Member
  • *****
  • Posts: 14197
  • Probably until I exterminate Putin.
Re: Generics.collections documentation
« Reply #5 on: July 24, 2019, 05:25:00 pm »
PasDoc generated - https://julstrat.github.io/generics.collections
Yes, but that is missing examples and has hardly any explanation in most cases.
The PDF has examples as well as about the same info as your link provides.

Still there's no harm in using them both: yours for reference, the pdf as user manual.
Specialize a type, not a var.

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Generics.collections documentation
« Reply #6 on: July 24, 2019, 05:58:59 pm »
Thanks all for the links. I may not dive in for a while, but will have a look at some point.
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

julkas

  • Guest
Re: Generics.collections documentation
« Reply #7 on: July 24, 2019, 06:14:48 pm »
PasDoc generated - https://julstrat.github.io/generics.collections
Yes, but that is missing examples and has hardly any explanation in most cases.
The PDF has examples as well as about the same info as your link provides.

Still there's no harm in using them both: yours for reference, the pdf as user manual.
Yes, my just for class ref. I made it today, and found bug in PasDoc.

hnb

  • Sr. Member
  • ****
  • Posts: 270
Re: Generics.collections documentation
« Reply #8 on: July 25, 2019, 09:20:54 am »
for main differences between Delphi and FPC implementation you can also see this document :

https://github.com/maciej-izak/generics.collections/blob/master/GenericsCompatibilityMatrix.pdf
Checkout NewPascal initiative and donate beer - ready to use tuned FPC compiler + Lazarus for mORMot project

best regards,
Maciej Izak

 

TinyPortal © 2005-2018