Is there an equivavlent to C# boxing in D?

Basile B. b2.temp at gmx.com
Sat Feb 12 17:26:46 UTC 2022


On Saturday, 12 February 2022 at 16:50:16 UTC, H. S. Teoh wrote:
> Without alias this it would be harder to pull off, yes.

I don't see any other way that allows to unbox *implictly*.
That would require a new operator. Something like opCast but more 
permissive, that works without `cast`.




More information about the Digitalmars-d-learn mailing list