[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: enum and named sets
[Thread Prev] | [Thread Next]
- Subject: Re: enum and named sets
- From: Jussi Lahtinen <jussi.lahtinen@xxxxxxxxx>
- Date: Tue, 9 Dec 2025 23:01:33 +0200
- To: user@xxxxxxxxxxxxxxxxxxxxxx
> > 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
| enum and named sets | Brian G <brian@xxxxxxxxxxxxxxxx> |
| Re: enum and named sets | Jussi Lahtinen <jussi.lahtinen@xxxxxxxxx> |
| Re: enum and named sets | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |