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

Closed 21 years ago

Last modified 18 years ago

#115 closed defect (fixed)

An error in '==' function

Reported by: imendez Owned by: danirus
Priority: normal Milestone:
Component: Math Version: head
Severity: normal Keywords:
Cc:

Description

When compiling this code:

Text Fechado = "Diario";
Serie Ser = CalInd(W, WD(7));
Real condMal = Dating(Ser) == Eval(Fechado);

tol returns the next error message:

ERROR: Argumentos erróneos para Real == (Anything var1, Anything var2)
ERROR: condMal no se pudo crear.

but this similar code:

Text Fechado = "Diario";
Serie Ser = CalInd(W, WD(7));
TimeSet t1 = Dating(Ser);
TimeSet t2 = Eval(Fechado);
Real condBien = t1 == t2;

works rigth

Change History (4)

comment:1 Changed 21 years ago by danirus

Status: newassigned

comment:2 Changed 21 years ago by maalamo@…

With the folowing code, it doesn't return error

Text Fechado = "Diario";
Serie Ser = CalInd(W, WD(7));
Real condMal = ((TimeSet Dating(Ser)) == (TimeSet Eval(Fechado)));

comment:3 Changed 21 years ago by danirus

Resolution: fixed
Status: assignedclosed

This bug has just been resolved.

Until now Dating() function was operating only in sentences with an explicit
TimeSet Grammar, like in the next sentence:

_
TimeSet tm = Dating(ser);


In the left part of that sentence there is an explicit mention to TimeSet data type.
Now we can operate also with "Anything" data type operands like ==.

The solution affects only to spfuninst.cpp source code file.

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

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000115
Note: See TracTickets for help on using tickets.