Type inference and overloaded functions
Ali Çehreli
acehreli at yahoo.com
Thu Dec 19 11:04:40 PST 2013
On 12/17/2013 07:21 PM, bearophile wrote:
> But my suggested syntax is not that good, here $ has already a meaning,
> that is the whole length of b, So some different idea is needed here :-(
>
> b[0 .. $] = foo();
Sorry, I can't resist... Golden rule of system programming language
syntax: When in doubt, reach for static:
b[0 .. $tatic] = foo();
Done! :p
Ali
More information about the Digitalmars-d-learn
mailing list