Function pointers/delegates default args were stealth removed?

Manu turkeyman at gmail.com
Mon Aug 27 14:06:34 PDT 2012


On 27 August 2012 23:54, Walter Bright <newshound2 at digitalmars.com> wrote:

> On 8/27/2012 7:03 AM, foobar wrote:
>
>> This discussion is all sorts of wrong. Whoever said that defargs are
>> metadata
>> (Manu?) was right. Therefore it would make sense to implement a general
>> metadata
>> facility for D and use *that* for defargs. C++11 has annotations, so
>> that's the
>> place to start looking at. D has already enough of those pesky special
>> case
>> features, let's not add yet another one at the expense of a more general
>> metadata/annotation mechanism which eventually would be added anyway due
>> to
>> popular demand.
>>
>
> The annotations design discussed was about annotating declarations, not
> types.
>

And that may be fine for default args too. I've personally only ever used
them where I've explicitly defined them.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120828/6d4188d8/attachment.html>


More information about the Digitalmars-d mailing list