Yes, thank you dave_the_m that explains it. Of course in most real code this issue will never arise because the class will be declared before it is called.
And in this case I can fix the issue by "predefining" the forward ref with
{ package T; }
somewhere before the class is used
In reply to Re^2: Creating new objects from within a package
by hawtin
in thread Creating new objects from within a package
by hawtin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |