Pretty please: Named arguments

Bekenn leaveme at alone.com
Mon Feb 28 18:07:21 PST 2011


On 2/28/11 5:53 PM, Stewart Gordon wrote:
> I don't know, but possibly
>
> void setColour(int colour alias color);
>
> and with a possibility of deprecating old names
>
> int find(string haystack deprecated alias s1, string needle deprecated
> alias s2);

I think that could work; I don't mind the verbosity, given that the 
actual need for a parameter name alias should be exceedingly rare.


More information about the Digitalmars-d mailing list