alias have new syntax?
Brian Schott
briancschott at gmail.com
Sat Jan 18 15:09:01 PST 2014
On Saturday, 18 January 2014 at 23:00:11 UTC, bearophile wrote:
> Yes, it's a recent very small syntax improvement. Eventually I
> hope the older syntax will be deprecated. The old syntax is
> still used for the "static this" in structs.
>
> Bye,
> bearophile
DScanner now issues a warning when run with the --styleCheck or
--syntaxCheck options suggesting that the user switch from "alias
a b" to "alias b = a".
It also warns on implicit string concatenation, which has saved
me a lot of debugging in situations like this:
enum someStrings = ["abc", "def" "ghi", "jkl"];
More information about the Digitalmars-d
mailing list