Implicit type conversion depending on assignment

Ali Çehreli acehreli at yahoo.com
Thu Mar 23 20:21:30 UTC 2023


On 3/23/23 06:38, Alexander Zhirov wrote:
 > Is it possible to convert such records inside the structure to the
 > assigned type?

D does not embrace implicit conversions. There is some support like 
'alias this' as you mentioned but what you are looking for is not possible.

Ali



More information about the Digitalmars-d-learn mailing list