Optional parameters referring to previous parameters?
Mafi
mafi at example.org
Fri May 11 05:40:52 PDT 2012
Am 10.05.2012 19:07, schrieb Tove:
> 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 see: that is an interesting use case!
More information about the Digitalmars-d
mailing list