[fpc-pascal] private type and type compatibility
Xiangrong Fang
xrfang at gmail.com
Wed Oct 30 14:47:07 CET 2013
2013/10/30 Sven Barth <pascaldragon at googlemail.com>
> It's a bit annoying that the usage private/protected types in
> public/published functions is allowed... (this is however Delphi
> compatible) Maybe this should be adjusted for non-Delphi modes for language
> consistency... (maybe at least as a warning which could be elevated to an
> error if someone wants)
>
Alternatively, consider do NOT allow access modifiers for NESTED types,
instead, the visibility of nested types follow the class they are embeded
in. Anyway, what is the purpose of HIDE a nested type?
Regards,
Xiangrong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131030/88b7a4ae/attachment.html>
More information about the fpc-pascal
mailing list