Feature: `static cast`

ag0aep6g anonymous at example.com
Tue Jun 6 05:23:40 UTC 2023


On 05.06.23 18:06, Quirin Schroll wrote:
> I don’t think `*cast(D*) &c` is good. I’d use `cast(D) cast(void*) c`, 
> making unambiguously clear I want a type paint.

`cast(D*) &c` is the unambiguous type paint. `cast(D) cast(void*) c` can 
be intercepted by `opCast`.


More information about the Digitalmars-d mailing list