Optional parameters referring to previous parameters?
Mehrdad
wfunction at hotmail.com
Thu May 10 12:02:01 PDT 2012
On Thursday, 10 May 2012 at 17:07:49 UTC, Tove 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;
> }
lol, that's exactly why I asked for this..
More information about the Digitalmars-d
mailing list