Constants, Aliases

Chris Nicholson-Sauls ibisbasenji at gmail.com
Thu Dec 14 21:08:11 PST 2006


nazo wrote:
> suggestion of syntax sugar:
>   const int f(alias i)=i*10;

Makes me think of my hypothetical Boar language...

# // Boar example
# module #Math;
# function Float sqr  ($n) = $n * $n;
# function Float cube ($n) = #Math:sqr($n) * $n;

Therefore, naturally, I'm not against it.  :)

-- Chris Nicholson-Sauls



More information about the Digitalmars-d mailing list