Opened 17 years ago
Closed 17 years ago
#564 closed defect (fixed)
Error in Passing Code objects as parameters
Reported by: | Christian Paz | Owned by: | Víctor de Buen Remiro |
---|---|---|---|
Priority: | highest | Milestone: | |
Component: | Various | Version: | 1.1.6 |
Severity: | critical | Keywords: | |
Cc: |
Description
The Function Chart is opening an explorer window in the folder containing tolbase.exe. A simple example is running this in tolbase:
Set Chart(SetOfSet(SetOfReal(1,2)), "");
Additionally the description of this function is uninformative about what it should do (Aplica el metodo Chart a un conjunto de objetos).
I discover this error because of another error, when running the Plot Function:
Set densidadeNormalPlot = Plot(DensNormal,-4.0,4.0,100);
Set distribuicaoNormalPlot = Plot(DistNormal,-4.0,4.0,100);
Give the same result (that of DensNormal), and changing the order of compilation, gives also the same result (that of DistNormal). Appereantly the parameter f remains stucked with the value first used. To test this I make this simple sample:
Real bla(Code c, Real a)
{ Real c(Real a) };
Real y1=bla(Floor, 4.2);
Real y2=bla(Abs, 4.2);
Maybe this helps to solve this problem, that I think is critical because many programs may depend on this.
Thanks in advance.
Change History (4)
comment:1 Changed 17 years ago by
Owner: | changed from danirus to Víctor de Buen Remiro |
---|
comment:2 Changed 17 years ago by
Status: | new → assigned |
---|
The problem seems to be related just to C++-built-in function, because if you use your own TOL-built functions, then it are working fine:
Real y1=bla(Real(Real x) { Floor(x) }, 4.2);
Real y2=bla(Real(Real x) { Abs (x) }, 4.2);
Until this internal problem will be solved, you can avoid it by replacing built-in functions by user-functions.
I expect this comment can help you.
comment:3 Changed 17 years ago by
I see.
Well, I can change this in my user-functions. The other strange thing is that of Opening the folder of tolbase when running chart, but this is not so critical.
Thanks
comment:4 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Problem has been fixed in CVS
We are working about this problem
Thanks for reporting