cast overly permissive with extern(C++ ) classes; should cast through `void*`
Timothee Cour
thelastmammoth at gmail.com
Tue Feb 6 23:15:07 UTC 2018
> 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
<digitalmars-d at puremagic.com> 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
More information about the Digitalmars-d
mailing list