testing object inheritance


Subject: testing object inheritance
From: Sorin Lerner (lerns@cs.washington.edu)
Date: Wed Nov 01 2000 - 19:37:47 PST


Is there a way in Cecil to determine if an object inherits from another
object O, even if O is abstrat. I have a variable "node', and I tried
node.inherits_from(IntLiteralNode). This however caused a run-time error
because IntLiteralNode is an abstract object. Is there a way around
this?

Sorin



This archive was generated by hypermail 2b25 : Wed Nov 01 2000 - 19:37:54 PST