close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 19 years ago

Closed 18 years ago

#402 closed defect (fixed)

Strange Variable Names in TolBase after executing a BinGroup

Reported by: Christian Paz Owned by: rcsoto
Priority: normal Milestone:
Component: Interface Version: head
Severity: normal Keywords:
Cc:

Description

This is a kind of strange problem, I think it has to be with the BinGroup
Function that I detected when trying to implement a function which returns the
set of all the possible permutations of a set of numbers.


Set Permutacoes(Set numeros)
{

Set perms = EvalSet(numeros, Set (Real i)
{

Set restantes = numeros - SetOfReal(i);
Set res=If(Not(IsEmpty(restantes)), {

Set permRest = Permutacoes(restantes);
Set res=EvalSet(permRest, Set (Set perm){SetOfReal(i)<<perm})},

SetOfSet(SetOfReal(i)))

});
Set perm = BinGroup("<<", perms)

};

Set permutacoes=Permutacoes(Range(1,5,1));


If you execute this code in TolBase some sets inside permutacoes set have a
strange name composed by special characters like "·£" or something like that.
If you execute:

Set EvalSet(permutacoes, Set (Set x){EvalSet(x, Real(Real a){Text
WriteLn(Name(a));0})});

you get a lot of blank lines as expected.

Because of that I suppose this is a TolBase problem, because in Tol Console
apparently there is no problem.

Thanks a lot,

Change History (1)

comment:1 Changed 18 years ago by rcsoto

Resolution: fixed
Status: newclosed

This error does not happen in the new versions.

Thank you very much.

Note: See TracTickets for help on using tickets.