[Lazarus] Where to place definition of a record?

Howard Page-Clark hdpc at talktalk.net
Sun Jan 25 00:24:40 CET 2009


On Sun, 25 Jan 2009 00:22:09 +0200
Dave Coventry <dgcoventry at gmail.com> wrote:

> I'm following a suggestion for producing my own records
> so that I can define a custom TStringlist as detailed in this
> article:
> http://dn.codegear.com/article/33423
> 
> However, I am unsure of where to post this code and am
> wondering if someone would advise me.
...
> type
>   TNameValueRecord = record
>   private
>     FNames: array of string;
>     FTypes: array of string;
>     function  GetCount: integer; inline;
... end;

Delphi 2006 introduced new Pascal syntax - the possibility that records
can contain methods and properties in addition to the data fields
records have always had. This makes such 'advanced records' a sort of
pseudo-class construct.
FreePascal/Lazarus does not support this language extension.

----
Howard



More information about the Lazarus mailing list