August 26, 2012 Re: Function pointers/delegates default args were stealth removed? | ||||
|---|---|---|---|---|
| ||||
On 8/27/12, Manu <turkeyman@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. | ||||
August 27, 2012 Re: Function pointers/delegates default args were stealth removed? | ||||
|---|---|---|---|---|
| ||||
Attachments:
| On 27 August 2012 02:04, Andrej Mitrovic <andrej.mitrovich@gmail.com> wrote:
> On 8/27/12, Manu <turkeyman@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.
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply