"Mehrdad" <[email protected]> wrote in message 
news:[email protected]...
>I just realized some of my code broke because of the (apparent?) changes to 
>typedef.
>
> I had something like:
>
>    extern(Windows) void Foo(HANDLE h);
>
>    const HANDLE h = CreateFile(...);
>    Foo(h);
>

The fact that const(HANDLE) implicitly converted to HANDLE is a bug in dmd. 
You can insert casts if you still want the same broken behaviour with alias.
Apart from that, typedef has been 'unofficailly' deprecated for some time, 
and removed from (most of) the online documentation.  Hopefully soon it will 
be officially deprecated in the language, giving a deprecation error when 
used. 


Reply via email to