Re: Suggestions for ESL (was: Euphoria Standard Library on UBoard)
- Posted by D. Newhall <derek_newhall at yahoo.com> Jul 24, 2005
- 532 views
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.