Re: How to check an attribute's existence

2005-02-25 Thread Leopold Toetsch
Cory Spencer [EMAIL PROTECTED] wrote: Is is possible to check to see whether an attribute exists on a given object, or at least catch an exception if it doesn't? I've tried to set up an exception handler, but Parrot exits without anything being caught. Not yet. Cgetattribute throws currently

How to check an attribute's existence

2005-02-24 Thread Cory Spencer
Is is possible to check to see whether an attribute exists on a given object, or at least catch an exception if it doesn't? I've tried to set up an exception handler, but Parrot exits without anything being caught. A code snippet follows: .sub _main .local pmc class .local int type