On 10/08/2014 10:25 PM, ketmar via Digitalmars-d wrote:
On Wed, 8 Oct 2014 23:20:13 +0300
ketmar via Digitalmars-d <[email protected]> wrote:
p.s. or vice versa: "static if (__ctfe)" is always true, to non-ctfe
code will be removed. sorry, i can't really remember what is true, but
anyway, it works by removeing one of the branches altogether.
This is probably a regression somewhere after 2.060, because with 2.060
I get
Error: variable __ctfe cannot be read at compile time
Error: expression __ctfe is not constant or does not evaluate to a bool
as I'd expect.