> Like assumeUnique? https://dlang.org/library/std/exception/assume_unique.html
what do you mean? u mean adding "unique" to the DSL list ? maybe! * for cast on extern C++ classes, why not use the same logic as what C++ uses for dynamic_cast? (simplified because we don't support multople inheritance) On Tue, Feb 6, 2018 at 2:54 PM, Seb via Digitalmars-d <[email protected]> wrote: > 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
