Is implicit string literal concatenation a good thing?

Sergey Gromov snake.scaly at gmail.com
Sun Feb 22 06:10:45 PST 2009


Sun, 22 Feb 2009 10:21:20 +0100, Frank Benoit wrote:

> Find the bug:
>     static string[] KEYWORDS = [ "abstract", "alias", "align", "asm",
>         "assert", "auto", "body", "bool", "break", "byte", "case",
>         "cast", "catch", "cdouble", "cent", "cfloat", "char", "class",
>         "const", "continue", "creal", "dchar", "debug", "default",
>         "delegate", "delete", "deprecated", "do", "double", "else",
>         "enum", "export", "extern", "false", "final", "finally",
>         "float", "for", "foreach", "foreach_reverse", "function",
>         "goto", "idouble", "if", "ifloat", "import", "in", "inout",
>         "int", "interface", "invariant", "ireal", "is", "lazy", "long",
>         "mixin", "module", "new", "null", "out", "override", "package",
>         "pragma", "private", "private:", "protected", "protected:",
>         "public", "public:", "real", "return", "scope", "short",
>         "static", "struct", "super", "switch", "synchronized",
>         "template", "this", "throw", "true", "try", "typedef", "typeid",
>         "typeof", "ubyte", "ucent", "uint" "ulong", "union", "unittest",
>         "ushort", "version", "void", "volatile", "wchar", "while",
>         "with", "~this" ];
> 
> There is a comma missing : "uint" "ulong"

I agree this feature is dangerous and useless in D.



More information about the Digitalmars-d mailing list