param2 = param1

Walter Bright newshound2 at digitalmars.com
Wed Aug 28 14:51:26 PDT 2013


On 8/28/2013 12:16 AM, Jacob Carlborg wrote:
> On 2013-08-27 21:56, Walter Bright wrote:
>
>> No reason. It simply never occurred to anyone. I've never heard of
>> anyone wanting this in all my years of C, C++, and D.
>
> void foo (ubyte[] source, ubyte[] destination = source);
>
> Do some operation, by default override "source":
>
> void scale (int width, int height = width);

Is this really a problem that needs solving?


>> I'd reject an enhancement request for this unless someone could
>> demonstrate significant utility for it.
>
> So consistency is not a good argument?

Is it really consistent if you have to add a new section in the documentation 
explaining it?



More information about the Digitalmars-d mailing list