There are a number of ops that could fail. Examples are find_lex but also the various load and lookup ops. Options for handling failure are:
- Abort parrot - Throw an exception - Return a default (null) value I think it is hard for the parrot designers to decide what language implementors want (given the vast array of languages out there for which parrot is a godsend). I am currently extending my OpenComal interpreter with a parrot code generator and since Comal is a somewhat awkward language I need different things than the average perl/python/hq9 implementor. I would therefore vote for a feature where I (as language designer) could indicate whether for instance a find_lex (but others too) fails silently (null return value) or with an exception. Maybe this should be a global something... Real CPU's often have a control register that contains CPU-wide flags. Maybe parrot needs one too? ++Jos.es -- ek is so lug jy vlieg deur my sonder jou is ek sonder patroon "Breyten Breytenbach"