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 18 years ago

Closed 18 years ago

#464 closed defect (fixed)

EvalArgs fails

Reported by: imendez Owned by: danirus
Priority: high Milestone:
Component: Kernel Version: head
Severity: critical Keywords:
Cc: Jorge, Alfredo Torre

Description

Hi,

I've found an error in a TOL function called "EvalArgs" when opening the SADD "concept viewfinder" ("visualizador de conceptos").

I don´t know exactly where the problem is, but it's very easy to reproduce it. You just hace to charge SADD project, open the "concept viewfinder" and watch the output log file.

Regards.

Change History (4)

comment:1 Changed 18 years ago by danirus

SADD is not a public project.
Could you send the sources?

Thanks in advance,
Daniel

comment:2 Changed 18 years ago by imendez

Hi Dani,

I can´t send SADD sources because, as you say, it's not a public project.

But, as I said in my first message, the error is not in SADD code but in EvalArg function. This simple code shows it:

Real a = 4; #1
Real b = 5;
#2
Real r = EvalArg(+, a, b ?); #3
Real r_ = EvalArg("+", a, b ?);
#4

Line #3 returns a syntactic error and line #4 returns an unknown value (?).
Curiously, line #4 works right in version 1.1.4., but line #3 doesn´' work in any version, although it's written just as EvalArg description says:

"
EvalArg {Anything EvalArg(Code funcion, Set argumentos)} {} {Devuelve el resultado de evaluar una función con los argumentos dados.

Ejemplo:
Anything x = EvalArg(+,a,b?);
"

Thus, I think that the description of EvalArg is wrong and the behaviour of the function has change from 1.1.4 version to CVS version.

Regards.

comment:3 Changed 18 years ago by danirus

Thanks Iván, that's enough. I'll care of it.

Cheers

comment:4 Changed 18 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: newclosed

Sorry

This bug is due to an improvement in BText security that I introduced a few weeks ago. I solved it in Group and BinGroup but not in EvalArg because I don't use it.

Thanks to report it.

Note: See TracTickets for help on using tickets.