[ragel-users] Re: changes to ragel, feedback requested

Adrian Thurston thurs... at cs.queensu.ca
Tue Mar 20 20:53:33 UTC 2007


Hi Jason, thanks for the feedback. Defaulting to the first/last is a
possibility. I'm not sure I like the requirement that cs be initialized
after the write init. Could be a source of bugs more common than the one
we're trying to prevent.

They should still be static. Why do you ask?

-Adrian

Jason wrote:
> Adrian,
> 
> I think the  benefits are worth it.
> 
> What if you defaulted to assigning cs to the first one and switch the
> order of your two example statements.
> ...
> %% write init;
> int cs = (some_test)? foo_en_main_v1 : foo_en_main_v2;
> 
> This way cs is always initialized but is easily overridden by the
> developer.
> 
> Also, are the declarations no longer static?
> 
> thanks,
> Jason
> 
> 
> 
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "ragel-users" group.
> To post to this group, send email to ragel-users at googlegroups.com
> To unsubscribe from this group, send email to ragel-users-unsubscribe at googlegroups.com
> For more options, visit this group at http://groups.google.com/group/ragel-users?hl=en
> -~----------~----~----~----~------~----~------~--~---

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20070320/7a14e48d/attachment-0001.sig>


More information about the ragel-users mailing list