Function pointers/delegates default args were stealth removed?
bearophile
bearophileHUGS at lycos.com
Sun Aug 26 16:10:58 PDT 2012
Walter Bright:
> The trouble is that, as 3866 shows, there is no design anyone
> could come up with that worked in a consistent manner. The only
> consistent way out was to make default arguments a
> characteristic of the declaration, not of the type.
I think Ada is doing what D does now, it doesn't accept default
arguments for things like function pointers/delegates.
Bye,
bearophile
More information about the Digitalmars-d
mailing list