opDispatch & with

John Chapman johnch_atms at hotmail.com
Fri Feb 17 21:44:48 UTC 2023


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.


More information about the Digitalmars-d mailing list