[Issue 14682] [REG2.037] Incorrect interpretation of ~ []
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jun 11 16:47:00 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14682
--- Comment #10 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to Steven Schveighoffer from comment #9)
> (In reply to Vladimir Panteleev from comment #8)
> > (In reply to Steven Schveighoffer from comment #6)
> > > Could you do:
> > >
> > > (config.noDateTime ? ["NODATETIME=nodatetime.ddoc"] : string[].init)
> >
> > That's not where the problem lies - this was just an example.
>
> I was responding to this:
Yes. This is not where the problem lies. The problem is not with the ternary
statement, but with the ~[] after it. And yes, this is one possible but
inconvenient syntax to replace [].
--
More information about the Digitalmars-d-bugs
mailing list