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

#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 imendez

Priority: lowesthighest
Severity: criticalblocker

Even more difficult!!!

If you compile this piece of code:

/
Real a =
{

Text WriteFile("C:\usefulReal.tol", "Real b = 2;");
Set Include("C:\usefulReal.tol");
b

};
/

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.

comment:2 Changed 21 years ago by danirus

Status: newassigned

comment:3 Changed 21 years ago by danirus

Resolution: fixed
Status: assignedclosed

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 18 years ago by Víctor de Buen Remiro

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