enums extension

Mehrdad wfunction at hotmail.com
Thu May 17 11:27:06 PDT 2012


On Wednesday, 16 May 2012 at 06:24:54 UTC, Robert DaSilva wrote:
> The inheritances notation implies that it's a subset and can be 
> assigned to an instances of the base. This would not be true 
> with enums.
> FileAccessMask foo = FileAccessMask.FILE_READ_DATA;
> AccessMask bar = foo; // Error

Actually, that^ *should* work in my case; that was my point...


More information about the Digitalmars-d mailing list