Enum "Inheritance"?
Kagamin
spam at here.lot
Fri Feb 25 00:04:52 PST 2011
%u Wrote:
> >> Lol, okay. Do you have any other suggestions for a better
> solution on how to avoid duplicating generic access masks like
> MAXIMUM_ALLOWED inside each access mask type?
>
> > You're doing it wrong. Create OO wrapper instead.
>
> Hm... but:
>
> (1) I'm not going to create a new instance of an entire class every
> single time I need to check an access mask, that's wasteful.
I meant, you write File.open or File.isReadable which do the job for you and don't expose OS cruft.
More information about the Digitalmars-d
mailing list