Optional parameters referring to previous parameters?
Simen Kjaeraas
simen.kjaras at gmail.com
Fri May 11 01:53:39 PDT 2012
On Thu, 10 May 2012 19:07:47 +0200, Tove <tove at fransson.se> wrote:
> On Thursday, 10 May 2012 at 15:51:08 UTC, Steven Schveighoffer wrote:
>> On Thu, 10 May 2012 11:48:25 -0400, Steven Schveighoffer
>> <schveiguy at yahoo.com> wrote:
>>
>> And BTW, it's not just sugar -- you are saving a function call and
>> unnecessary code space.
>>
>> -Steve
>
> ui, pretty please! I love it too, it would allow this marvelous
> construct!
>
> auto my_extended_alloca(size_t size, void* buf=alloca(size))
> {
> return buf;
> }
I loves that.
More information about the Digitalmars-d
mailing list