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
This is still an issue. It seems like the parser expects every functor to be bound to a name, which doesn't allow for unnamed top-level functors to exist.
It doesn't even get past the parser stage, where it tries to insert an implicit nesting marker.
I am having trouble making this run:
code:
functor
export generic:Generic
define
fun {Generic Op InitVal N}
if N == 0 then InitVal
else {Op N {Generic Op InitVal (N-1)}}
end
end
end
error:
%************************* expansion error **********************
%**
%** illegal use of nesting marker
%**
%** in file "Oz", line 2, column 0
%** ------------------ rejected (1 error)
The text was updated successfully, but these errors were encountered: