> On Nov 30, 2016, at 6:19 PM, Graeme Geldenhuys
> <[email protected]> wrote:
>
> Yeah, those were introduced in FPC 3.0.0 I believe - more Delphi
> compatibility changes. I still don’t know if I like it though, but
> understand its usage is meant if two classes are very close related. You
> can now have nested classes (god knows how deep), constants, vars etc
> all inside a class definition. The Delphi version of the Object Pascal
> language is becoming pretty messy.
Big mess indeed. I can wrap my head around nested types in classes because
they’re necessary for generics I just learned but nested classes feel messy. Is
there at least some namespace protection? That would be a benefit I suppose if
the class was only ever used inside that class but a unit may be a better
option in that case.
Regards,
Ryan Joseph
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal