[fpc-pascal] Class const of array of record.

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Feb 24 14:38:44 CET 2012


On 24 Feb 2012, at 14:28, Everton Vieira wrote:

> type
>  TTest = class
>    const Nomes: array[0..2] of TRec = (mTRec(1, 'everton'), mTRec(2,
> 'murilo'), mTRec(3, 'vieira'));
>  end;

See http://www.freepascal.org/docs-html/ref/refse22.html (the syntax  
is the same for typed constants and initialized variables, as  
mentioned at http://www.freepascal.org/docs-html/ref/refse10.html )


Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120224/7c51fc0a/attachment.html>


More information about the fpc-pascal mailing list