proposal : functions->delegates
Thorsten Kiefer
thorstenkiefer at gmx.de
Sat Mar 3 18:55:52 PST 2007
Hi,
IMHO the compiler should be able to implicitly convert function-pointers into delegate-pointers.
Before the delegate is passed as argument, the context-pointer is filled in.
Now when I pass a function, the context-pointer could simply be filled with null.
A problem will be, where to store the context-pointer in a function, as it has no context-pointer (to preserve compatibility with C).
Or the compiler could implicitly create an anonymous delegate around that function.
More information about the Digitalmars-d
mailing list