Opened 19 years ago
Closed 17 years ago
#346 closed defect (fixed)
1+1+1 Not Equal SetSun(SetOfReal(1,1,1))
Reported by: | asalafranca | Owned by: | Víctor de Buen Remiro |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Math | Version: | head |
Severity: | normal | Keywords: | |
Cc: |
Description
Set s = SetOfReal(1,1,1);
Real If (SetSum(s) == 3, 1, 2);
Real If (1+1+1 == 3, 1, 2);
Change History (6)
comment:1 Changed 18 years ago by
Owner: | changed from danirus to Víctor de Buen Remiro |
---|
comment:2 Changed 18 years ago by
comment:3 Changed 18 years ago by
Resolution: | → remind |
---|---|
Status: | new → closed |
This bug is due to the inconsistence of language and cannot be solved without a deep and extended change of almost all internal code.
However, it has been easy to display an error
Error: There are non Text objects in the set argument of function Text SetSum
that can helps user to write code in a non ambiguous way.
A test has been added to tol_tests/tol/Bugzilla/bug_000346
comment:4 Changed 18 years ago by
bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000346 |
---|
comment:5 Changed 17 years ago by
Resolution: | remind |
---|---|
Status: | closed → reopened |
comment:6 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Curious, if you add a line:
Set s = SetOfReal(1,1,1);
Real SetSum(s);
Real If (SetSum(s) == 3, 1, 2);
Real If (1+1+1 == 3, 1, 2);
It works right.