#180 closed defect (fixed)
function doesn't exist
| Reported by: | imendez | Owned by: | danirus |
|---|---|---|---|
| Priority: | highest | Milestone: | |
| Component: | Kernel | Version: | 1.1.1 |
| Severity: | blocker | Keywords: | |
| Cc: |
Description
When a function is created by including a file containing it in a local level, the
function doesn't exist in the local level neither in the global one.
This piece of code probes it:
Real a =
{
Text WriteFile("C:\usefulFunction.tol", "Real usefulFunction(Real n) { n+1 };");
Set Include("C:\usefulFunction.tol");
usefulFunction(cont)
};
Code usefulFunction;
It's really serious.
Change History (4)
comment:1 Changed 21 years ago by
| Priority: | lowest → highest |
|---|---|
| Severity: | critical → blocker |
comment:2 Changed 21 years ago by
| Status: | new → assigned |
|---|
comment:3 Changed 21 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
This bug has been just resolved.
The problem was a bad behavior in the Evaluator, when a "Set Include" sentence
appears in a local scope.
comment:4 Changed 19 years ago by
| bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000180 |
|---|

Even more difficult!!!
If you compile this piece of code:
/
Real a =
{
};
/
the first time you compile it, it works rigth, but the second time you try to compile it
(even though you have decompiled it) tol returns next error message:
/
ERROR: b no es un objeto de tipo Real.
ERROR: a no se pudo crear.
/
Unbelieveable!!!
I change the severity of this Bug to "Blocker" because we can't estimate massively.