Implicit type conversion depending on assignment

Jacob Shtokolov jacob.100205 at gmail.com
Fri Mar 24 09:46:26 UTC 2023


On Friday, 24 March 2023 at 09:39:00 UTC, Jacob Shtokolov wrote:
> On Thursday, 23 March 2023 at 13:38:51 UTC, Alexander Zhirov 
> wrote:
>> Is it possible to convert such records inside the structure to 
>> the assigned type?

BTW, you can also `alias this` your struct value and then use 
`std.conv : to` for casting, if you don't need specific casting 
rules.



More information about the Digitalmars-d-learn mailing list