I am having trouble figuring out how to invoke a parameterized script
using the Explorer object.
Specifically, I have the following parameterized function
fun {Design V}
if V mod 4 == 1
then
proc {$ Root}
...
%% values for Root declared somewhere
end
else proc {$ _} fail end
end
end
which I want to be invokable in one of two ways:
1. from the Explorer object
2. from the Search object
The search tree is deep enough that I need recomputation to
be able to get solutions in a reasonable time.
The latter one I invoke like this:
R = {Search.all {Design V} 20 _}
and it works just fine.
But now I can no longer make it work with the Explorer object,
because I am attempting to pass in a parameter.
For example, invoking
{Explorer.object option(search search:5 information:25 failed:true)}
{Explorer.object script {Design V}}
and
{Explorer.object option(search search:5 information:25 failed:true)}
{Explorer.object script Design V}
both fail to run because of arity mismatches.
So how do I make it work?
--------------------
George Rudolph
Assistant Professor
Thompson Hall 225
Math & Computer Science Dept.
The Citadel
171 Moultrie St.
Charleston, SC 29409
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users