Re: Suggestions for ESL (was: Euphoria Standard Library on UBoard)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Pete Lomax wrote:
> 
> On Sun, 24 Jul 2005 08:45:05 -0700, Tommy Carlier
> <guest at RapidEuphoria.com> wrote:
> 
> >> >   }}}
<eucode>
> >> >   constant DAY_OF_WEEK = enum()
> >> >   constant MONDAY = next(DAY_OF_WEEK),
> <font color="#330033">>> </eucode>
{{{
</font></font>
> 
> FWIW I'd prefer
> }}}
<eucode>
> constant DAY_OF_WEEK = create_enum()
> constant MONDAY = enum(DAY_OF_WEEK)
> <font color="#330033"></eucode>
{{{
</font>
I prefer Pete's version over Tommy's however I think enum_begin(start_value,
step_value) and enum() is better because you're not so much creating an enum but
instead starting one.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu