On 29.01.2011 18:08, Paul Ishenin wrote:
29.01.2011 23:58, Sven Barth wrote:
This is one of those moments where I need to restrain myself to not
swear for the whole world to hear...
*sigh*
I had the same feeling when I found that generics are stored as TFoo<,>
in the delphy symtable and therefore it is possible to have TFoo,
TFoo<T>, TFoo<T1,T2>, TFoo<T1,T2,T3> types in the same unit :)
At least I'm not alone with that feeling. :P
Does the nested class helper adhere to visibility rules? E.g. if you
make it "strict private" or "strict protected" does it still work? Or
if you put the class in another unit and lower the visibility
somewhere below public? (I can't test now, because I have Delphi only
at work)
For some reason the visibility is completely ignored here. I can add a
class helper to the strict private or even move it to another unit - it
is always visible.
Thanks for testing.
So suggestions regarding implementation?
Ignore in mode Delphi as well and enforce visibility rules in mode ObjFPC?
Regards,
Sven
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel