Recent

Author Topic: Generics.collections documentation  (Read 1101 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: 10436
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 »
When you ask a question that is actually answered in the documentation, you are either lazy or a moron.

julkas

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

JD

  • Hero Member
  • *****
  • Posts: 1793
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 (10, 7) - Lazarus 2.1/FPC 3.2, Delphi

Indy 10.6 series; mORMot; Zeos 7.3; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

julkas

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

Thaddy

  • Hero Member
  • *****
  • Posts: 10436
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.
When you ask a question that is actually answered in the documentation, you are either lazy or a moron.

VTwin

  • Hero Member
  • *****
  • Posts: 927
  • 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

macOS 10.13.6: Lazarus 2.0.8 (64 bit Cocoa, also fixes and trunk)
Ubuntu 18.04.3: Lazarus 2.0.8 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.0.8 (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