Can we just have struct inheritence already?

KnightMare black80 at bk.ru
Sun Jun 9 15:31:52 UTC 2019


On Sunday, 9 June 2019 at 15:13:06 UTC, KnightMare wrote:
> On Sunday, 9 June 2019 at 15:02:29 UTC, KnightMare wrote:
>>> struct DerivedStruct : BaseStruct
> and this need just one colon

but alias useful too when u want to use struct like another type 
without cast or calling method. for example
decimal dec;
funcThatExpectDouble( dec); // instead dec.toDouble()
// I prefer implicit opCast that is absent too


More information about the Digitalmars-d mailing list