#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
Status: | new → assigned |
---|
comment:2 Changed 21 years ago by
comment:3 Changed 21 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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
bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000115 |
---|
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)));