enum

bearophile bearophileHUGS at lycos.com
Thu Apr 10 07:35:55 PDT 2014


Chad Joan:

I am not yet following this thread, but:

> myFile.open("foobar.txt",
>     FileAccess.READ |
>     FileAccess.WRITE );

(I use enum filds to be lowercase, as it's common in D):

with(FileAccess)
     myFile.open("foobar.txt", read | write);

Bye,
bearophile


More information about the Digitalmars-d mailing list