[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: enum and named sets


>
> I rarely use enum in C, prefering #define.
>

Yes, it is a much better way.



> But if an enum is really private, how can it be used outside of where it
> is declared?
>
> If I make enumerations a pseudo-type in Gambas, private enumerations
> will only be able to be used inside the class it is declared, exactly
> like private static constants. They will be invisible and unknown from
> the outside.
>

Yes, exactly. That is why I said they should *NOT* exist.


Jussi

References:
enum and named setsBrian G <brian@xxxxxxxxxxxxxxxx>
Re: enum and named setsJussi Lahtinen <jussi.lahtinen@xxxxxxxxx>
Re: enum and named setsBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>