Function pointers/delegates default args were stealth removed?

Manu turkeyman at gmail.com
Sun Aug 26 17:17:40 PDT 2012


On 27 August 2012 02:04, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:

> On 8/27/12, Manu <turkeyman at gmail.com> wrote:
> > I just updated to 2.60 and found errors throughout my code where function
> > pointers default args no longer work.
>
> Yeah it was kind of surprising for me as well. If it's of any value
> I've had to implement a templated workaround for my own needs, it
> might help:
>
>
> http://forum.dlang.org/thread/mailman.966.1343938387.31962.digitalmars-d-announce@puremagic.com
>
> I don't know if this is something worthy of putting into Phobos.
>

...it looks like you've just successfully implemented the inverse of don's
C++ FastDelegate hack in D.
I'd say about 80% of the reason I found and adopted D in the first place
was to get away from that FastDelegate hack... seriously. ;)

This won't do for foundational core API's.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120827/ca36ab89/attachment.html>


More information about the Digitalmars-d mailing list