Casting by assigning to the right ...

Manfred Nowak svv1999 at hotmail.com
Tue Apr 14 21:50:26 UTC 2020


On Tuesday, 14 April 2020 at 12:28:00 UTC, Steven Schveighoffer 
wrote:

> Without knowing what castTo is supposed to do, if I saw 
> s.castTo = i, I would not expect at all that i is going to 
> change.

What would you expect when you see
```
   i  ._=  s;
```
which is also currently legal code in Dlang?


More information about the Digitalmars-d mailing list