<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
11.01.2011 23:40, Razvan Adrian Bogdan пишет:
<blockquote
cite="mid:AANLkTi=aNPM=W1-vSw0Unxt2w6-FAP8vARdN0fkwx_Zu@mail.gmail.com"
type="cite">
<div class="gmail_quote">On Tue, Jan 11, 2011 at 4:18 PM, Paul
Ishenin <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:webpirat@mail.ru">webpirat@mail.ru</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div class="im">11.01.2011 20:49, Razvan Adrian Bogdan wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
type<br>
TMyStruct = record<br>
NestedStruct = record<br>
SimpleMember: string;<br>
end;<br>
end;<br>
</blockquote>
</div>
What compiler can compile this type?<br>
<br>
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.</blockquote>
<div> <br>
<br>
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. <br>
<br>
" TMyClass = class<br>
SubStructField: record<br>
Foo: Integer;<br>
end;<br>
end;"</div>
</div>
</blockquote>
Then it is not a nested type but just a regular field which type is
defined as anonymouse record. Initially the question was about
nested type declaration, not about fields.<br>
<br>
Best regards,<br>
Paul Ishenin<br>
</body>
</html>