I expected getprop to behave like find_lex and throw an exception if the property doesn't exist, but it doesn't:
.sub _main .local object Class .local object setv .local object getv Class = new ParrotClass setv = new PerlString setv = "value\n" setprop Class, "name", setv # ok delprop Class, "name" # ok getprop getv, "name", Class # inconsistent! print getv # prints empty string print "\n" print "type is: " # this print prints typeof S0, getv # "type is: PerlUndef" print S0 print "\n" end .end Maybe that's just what parrotclasses do, which is fine, but a pythonclass would need an exception here. In any case, it might be nice to have a 'hasprop' or a version of 'defined' for properties. (Nicer than making prophash and then checking that to see if it has a particular key) Sincerely, Michal J Wallace Sabren Enterprises, Inc. ------------------------------------- contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --------------------------------------