You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've always wanted class to inherit from context since you can extend a class with the package keyword just as you can a context, but it causes problems.
I made it so Class inherits from Context now, which is working OK, except that I had to tweak something in Function.pm. I had to use the actual outer scope of the function rather than the nearest context. This is undesirable because it would allow function type checks to be blinded by lexical variables or nested functions having the same name as the type.
The text was updated successfully, but these errors were encountered:
Since classes are not contexts, this happens with the new autoloading checks:
2:36:50 PM <booby> Class 'Vector' { ?$items:Num... }
2:36:55 PM <~mad> error in Math/build/Vector.frt.pm: Couldn't find Math::VectorAxis|VectorAxis at /Users/mitchellcooper/Projects/ferret/lib/Ferret/Core/FF.pm line 69.
This is because it's checking Math::VectorAxis and VectorAxis but NOT Math::Vector::VectorAxis (which is where it actually exists). It only looks for the package name, not the class.
I've always wanted class to inherit from context since you can extend a class with the
package
keyword just as you can a context, but it causes problems.I made it so Class inherits from Context now, which is working OK, except that I had to tweak something in Function.pm. I had to use the actual outer scope of the function rather than the nearest context. This is undesirable because it would allow function type checks to be blinded by lexical variables or nested functions having the same name as the type.
The text was updated successfully, but these errors were encountered: