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 17 years ago

Closed 17 years ago

#599 closed defect (fixed)

Files Included in a loop

Reported by: Iván Robles Owned by: Víctor de Buen Remiro
Priority: highest Milestone:
Component: Various Version: 1.1.6
Severity: critical Keywords:
Cc:

Description

When a file is included in a loop, the variables after can't be readed

Example:

Set bucle = For(1,10,Set (Real k){

Set arqIncluded = Include("C:/prueba.tol")

});
Set Include("C:/prueba.tol");
Text WriteLn("Numero "<<numero);

Need the file prueba.tol, that has the following code:

Real numero = 1;

Thanks

Change History (2)

comment:1 Changed 17 years ago by Víctor de Buen Remiro

Status: newassigned

We are working about this bug

Thanks for reporting

comment:2 Changed 17 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: assignedclosed

Problem has been solved in CVS for both HEAD and 1.1.6 branches.

There is a cache of compiled files in order to save recompiling time and avoid repeated objects in global scope but when file was laoded in local scope objects remain as local ones. So, just global files must be stored in cache. This could result in a larger execution time for local includes but is the only way to repair this bug and other hiden secondary effects. Afterwords is not a common usage and no bad effects were expecteds.

Thanks for reporting

Note: See TracTickets for help on using tickets.