This syntax regarding null checking baffles me

Paul Backus snarwin at gmail.com
Sun Jan 10 19:21:47 UTC 2021


On Sunday, 10 January 2021 at 17:28:42 UTC, kdevel wrote:
> On Sunday, 10 January 2021 at 16:44:29 UTC, Paul Backus wrote:
>
> [...]
>
>> Your opCast has the wrong signature.
>
> "Wrong" in what respect?
>

It does not match the signature required by the language spec:

https://dlang.org/spec/operatoroverloading.html#cast


More information about the Digitalmars-d mailing list