That's interesting. I get the same error using 5.6.1 on solaris 8.
If you move the package T block to before the package P block, the error goes away. If you say "T->new" instead of "new T", the error also goes away.
In reply to Re: Creating new objects from within a package
by herveus
in thread Creating new objects from within a package
by hawtin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |