Re: cast to pure function stop work after upgrade

2021-08-02 Thread Tejas via Digitalmars-d-learn
On Monday, 2 August 2021 at 15:10:06 UTC, vit wrote: On Monday, 2 August 2021 at 11:28:46 UTC, Tejas wrote: [...] Try this: ```d void main(){ fp = cast(typeof(fp)) //fails } ``` Agh, stupid me. You the man!!

Re: cast to pure function stop work after upgrade

2021-08-02 Thread vit via Digitalmars-d-learn
On Monday, 14 June 2021 at 13:31:51 UTC, baby_tiger wrote: this used work for me, after upgrade I get this error. how to fix it ? import std.traits; enum LogLevel : ubyte { INFO = 0, WARN, ERROR,

Re: cast to pure function stop work after upgrade

2021-08-02 Thread vit via Digitalmars-d-learn
On Monday, 2 August 2021 at 11:28:46 UTC, Tejas wrote: On Monday, 14 June 2021 at 13:31:51 UTC, baby_tiger wrote: [...] It seems to not work at runtime either. Maybe they've made this behaviour illegal now? Hopefully someone answers. ```d import std.traits; import core.stdc.stdarg;

Re: cast to pure function stop work after upgrade

2021-08-02 Thread Tejas via Digitalmars-d-learn
On Monday, 14 June 2021 at 13:31:51 UTC, baby_tiger wrote: this used work for me, after upgrade I get this error. how to fix it ? import std.traits; enum LogLevel : ubyte { INFO = 0, WARN, ERROR,

cast to pure function stop work after upgrade

2021-06-14 Thread baby_tiger via Digitalmars-d-learn
this used work for me, after upgrade I get this error. how to fix it ? import std.traits; enum LogLevel : ubyte { INFO = 0, WARN, ERROR, FATAL, } extern (C) string