Cool :-). BTW: When you implement it, please consider making it available for attributes! The Delphi version really sucks in this :-( . I have not been able to do things like:
[TComponentDialog( procedure( AInstance : TComponent) begin TMyComponnt( AInstance ).ShowDialog(); end ] TMyComponnt = class( TComponent ) public procedure ShowDialog(); end; This could have eliminated a full source file, and replaced it with 3 lines :-( . I really hate the half baked attribute and anonymous methods in Delphi :-( . With best regards, Boian Mitov ------------------------------------------------------- Mitov Software www.mitov.com ------------------------------------------------------- From: Sven Barth Sent: Monday, March 04, 2013 2:19 PM To: fpc-devel@lists.freepascal.org Subject: Re: [fpc-devel] Delphi anonymous methods We'll implement features of Delphi anyway for compatibility. So why not use the implementation of it, provide some nice Pascal-style syntax for it and allow FPC users to usr the feature in non-Delphi modes as well. :)
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel