[Lazarus] Declare record variant in it self

aradeonas aradeonas at operamail.com
Thu May 7 11:53:14 CEST 2015


Hi,

I have a record and it has some value and a value with type of that
record it self like this example but compiler wont allow me to do this
and give "Type "TExampleRecord" is not completely defined" error,and I
dont want to use class and keep creating and destroying it,they will be
some simple record.

> //Works with class
>
>  TExample=class s:string; E:TExample; end;
>
> //Doesn't work with record
>
> TExampleRecord=record s:string; ER:TExampleRecord; end;

Regards, Ara


-- 
http://www.fastmail.com - mmm... Fastmail...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150507/1d81e369/attachment-0002.html>


More information about the Lazarus mailing list