[Lazarus] Nested Classes used as Namespace Issue
Razvan Adrian Bogdan
lightningflash at gmail.com
Tue Jan 11 17:40:55 CET 2011
On Tue, Jan 11, 2011 at 4:18 PM, Paul Ishenin <webpirat at mail.ru> wrote:
> 11.01.2011 20:49, Razvan Adrian Bogdan wrote:
>
>> type
>> TMyStruct = record
>> NestedStruct = record
>> SimpleMember: string;
>> end;
>> end;
>>
> What compiler can compile this type?
>
> Type keyword is requires to disctinct different sections inside structures.
> In classes, records and object you can have inner type, const, var, class
> var and method sections.
Opps sorry for that second "=" symbol, i meant ":" like Sven wrote earlier
but with class and yes it would only be visible with that class and a
somewhat anonymous class.
" TMyClass = class
SubStructField: record
Foo: Integer;
end;
end;"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110111/24b02de9/attachment-0003.html>
More information about the Lazarus
mailing list