Mary Aranda Cabezas wrote:
I want to solve a same problem several times, but every time the
variable Fer is changing, at the moment only it solves once
the problem and soon patch remains like waiting for something.I do the
following thing:
functor
...
define
...
...
...
...
{For 1 Num 1
proc{$ I}
Generador = case Seleccionado of queens then
{Queens Argumentos.ene}
end
Algoritmo = {New AdapDistribute init ({Space.new Generador})}
{ConstruirAsig Fer A B Dim I}
{Algoritmo buscar(T)}
{Actualizar Fer Dim}
end}
There is something wrong in this loop: all variables are declared
outside it! Algoritmo will be bound to several objects, which does not
make sense in Oz: you cannot reassign a variable. You will probably
have the same problem with Fer and Dim. To me those variables should be
declared inside the procedure.
Something else is suspect. There should be an "else" clause below in
case Seleccionado does not match with queens.
Generador = case Seleccionado of queens then
{Queens Argumentos.ene}
end
Cheers,
raph
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users