# from b1.py - pseudo code
try:
n = self.P0(n+1) # recursive
except RuntimeError:
# pass
return n
can catch specific exceptions.
Comments welcome.
leo
> Pie-thon has Exception objects. We'll need such beasts too. So:
> 1) How do we "translate" Python classes? Properties only? Or
> full ParrotClass objects?
I think ParrotClass objects with properties should work fine.
Python objects are also referred to by reference, which we need to deal
with.
> 2) We'll need to classify our exceptions somehow so that we can model an
> exception class hierarchy.
Exceptions have always been spec'd out to have language/type/subtype
attached to them, though we've not implemented that. I think it's time to
do so.
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
d...@sidhe.org have teddy bears and even
teddy bears get drunk