D Lang'99 & Its future

Martin Tschierschke mt at smartdolphin.de
Wed Feb 9 12:56:18 UTC 2022


On Wednesday, 9 February 2022 at 12:47:34 UTC, bauss wrote:
[...]
> ```
>
> So when we do:
>
> ```
>     string toString() return
>     {
>       return cast(string)bits;
>     }
> ```
>
> There's no error.
>
> Probably a terrible example and I'm not sure if casting like 
> that is even considered safe or should even be done like that, 
> but yeah...
👍👍👍, and thanks.



More information about the Digitalmars-d mailing list