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
Canonical functions are currently not being supported at all.
Currently in /test-u/basics.lgl the following code results in the error: Fatal error: exception Gatorl.CheckUtil.TypeException("Line: 7 -- Invalid canonical function canon b _ab(a v)").
canon b _ab(a v) {
return (v + [1., 1.]) as! b;
}
In fact if we change the code to the following,
canon b _ab(b v) {
return (v);
}
we still get the same error indicating the the problem is not only in the casting as!.
The text was updated successfully, but these errors were encountered:
Ah, fortunately, this is not an error but a feature! We now require in Gator that canonical functions map between two geometric objects. To fix this code, simply change the function to act on reference frames a and b rather than the raw types a and b.
However, I will leave this issue open, since clearly the current error message is not helpful for debugging. Also, I should update the documentation to illustrate this updated behavior.
Canonical functions are currently not being supported at all.
Currently in
/test-u/basics.lgl
the following code results in the error:Fatal error: exception Gatorl.CheckUtil.TypeException("Line: 7 -- Invalid canonical function canon b _ab(a v)")
.In fact if we change the code to the following,
we still get the same error indicating the the problem is not only in the casting
as!
.The text was updated successfully, but these errors were encountered: