I’d like to propose this mode switch ($modeswitch multiscopehelpers) to allow 
multiple helpers per scope. I have no idea why Delphi thinks only one helper 
should be allowed in any scope but it cripples the feature severely. Sharing 
helpers is mostly not possible because of potential conflicts and even relying 
on helpers in your own code base is not safe because conflicts could occur 
later. Helpers are basically just a way to extend procedural calls to dot 
notation so I don’t understand why this restriction was ever out in place 
(Objective-C and C# never imposed the restriction on their 
categories/extensions).

All of the hard work was already done so it was just a matter of lifting the 
artificial restriction that was placed on them. There’s still clean up to do 
and as always I may have misunderstood something fundamental about the compiler 
design.

https://github.com/genericptr/freepascal/commits/helperscope

Regards,
        Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to