On Phobos GC hunt

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 8 14:40:01 PDT 2014


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 <digitalmars-d at puremagic.com> 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.


More information about the Digitalmars-d mailing list