cast overly permissive with extern(C++ ) classes; should cast through `void*`
Timothee Cour
thelastmammoth at gmail.com
Wed Feb 7 01:30:26 UTC 2018
ugh... dynamicCast is private...
On Tue, Feb 6, 2018 at 5:13 PM, Seb via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On Tuesday, 6 February 2018 at 23:32:49 UTC, Timothee Cour wrote:
>>
>> but yes, API would look similar:
>>
>> auto Cast(T)(T a) if(...) {}
>> auto Cast(string dsl)(T a) {}
>
>
> Ah I see.
> I think this is already partially done in Phobos (which shows the
> usefulness):
>
> https://github.com/dlang/phobos/blob/master/std/experimental/typecons.d#L37
More information about the Digitalmars-d
mailing list