opDispatch & with
drug007
drug2004 at bk.ru
Sat Feb 18 09:44:42 UTC 2023
18.02.2023 00:44, John Chapman пишет:
> On Friday, 17 February 2023 at 20:55:03 UTC, drug007 wrote:
>> you are trying to assign a value `Suit.diamonds` to a type `Suit`.
>> Could you describe what you want to do?
>
> I'm trying to assign Suit.diamonds to a property of Card named "Suit". I
> know properties are usually lower case, and that calling "c.Suit =
> Suit.diamonds" works. Just wonder why the compiler seems to overlook
> opDispatch here.
My bad, sorry for noise
More information about the Digitalmars-d
mailing list