[Issue 14682] [REG2.037] Incorrect interpretation of ~ []
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jun 11 07:12:46 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14682
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schveiguy at yahoo.com
--- Comment #6 from Steven Schveighoffer <schveiguy at yahoo.com> ---
Could you do:
(config.noDateTime ? ["NODATETIME=nodatetime.ddoc"] : string[].init)
Ugly I know :)
I agree the usage is surprising. And actually, it's not the same as appending
"", because "" is not null, whereas [] is.
--
More information about the Digitalmars-d-bugs
mailing list