That's not going to work for anything that inherits from ChildClass. It also doesn't work if the inheritance relationship changes after compile-time.
[Added: You also forgot to import &import from Exporter or make the parent class an ISA of Exporter.]
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In reply to Re^2: Constants and Subclasses...
by diotalevi
in thread Constants and Subclasses...
by t'mo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |