access subclass functions

Saaa empty at needmail.com
Thu Nov 20 06:54:50 PST 2008


"Kagamin" <spam at here.lot> wrote in message 
news:gg3t81$2flu$1 at digitalmars.com...
> Saaa Wrote:
>
>> In stead of numbers I use an enum, which makes it really difficult to get
>> this wrong:
>> fruits[BANANA].peel();
>
> why not using struct?

How do you mean?
What should be a struct? 




More information about the Digitalmars-d-learn mailing list