cast overly permissive with extern(C++ ) classes; should cast through `void*`

Seb seb at wilzba.ch
Tue Feb 6 22:54:58 UTC 2018


On Tuesday, 6 February 2018 at 21:34:07 UTC, timotheecour wrote:
> On Tuesday, 6 February 2018 at 21:13:50 UTC, timotheecour wrote:
>>[...]
>
>
> Actually how about introducing a library solution for explicit 
> casting:
> * works with UFCS chains (unlike cast)
> * DSL is very intuitive, readable and extensible
>
> [...]

Like assumeUnique?

https://dlang.org/library/std/exception/assume_unique.html


More information about the Digitalmars-d mailing list