Re: Enum?

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

Euler German wrote:
> 
> > On 14 May 2008 at 19:08, Alan F wrote (maybe snipped):
> 
> >  From what I understand, the first entry in any 'enum' statement is
> >  always
> > set to 1. However, the 'last enumeration value' option would be useful
> > (for example, to define a sequence of that length for holding a
> > structure), but I wasn't and still am not sure what would be good
> > syntax for this. I'm not so sure about the $ syntax proposed.
> > 
> 
> $ makes sense. It is "euphoric" alright (subscripts), but I'm not 
> sure about the convenience of "^". Well, I could used to it some day, 
> but can't get the point.

$ and ^ are used in regular expressions to denote 'to the end of it' and 'from
the beginning of it', respectively.

I personally think we should stay away from Perl syntax as much as possible.
It's refreshing to program in a language where you don't have to use as many !
at #$%^&*\ symbols.

(But that doesn't mean I don't think we could borrow some more Perl-ish
_concepts_)

Gary

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

Search



Quick Links

User menu

Not signed in.

Misc Menu