Opened 20 years ago
Closed 20 years ago
#193 closed defect (invalid)
Local declaration treated as global into Set definitions
Reported by: | hamoros | Owned by: | danirus |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Kernel | Version: | head |
Severity: | critical | Keywords: | |
Cc: |
Description
When defining many sets whith same names for its components, an error occurs
indicating that another variable is defined with the same name.
Set sample1 = SetOfAnything (
Text txt = "value1",
Real a = 3
);
Set sample2 = SetOfAnything (
Real a = 5,
Text txt = "value2"
);
But when doing the same in an evalset no error occurs
Set cjto = EvalSet(1,2?,Set (Real x)
{
Set sample3 = SetOfAnything(
Text txt3 = "value",
Real a3 = x
)
}
);
Note: See
TracTickets for help on using
tickets.
After a conversation about this bug in Usuarios-Tol List (spanish version of
Tol-Users mailing list), we conclude that the problem described is not a bug.
Usuarios-Tol related archives:
http://www.tol-project.org/pipermail/usuarios-tol/2004-November/thread.html
(message entitled as "El ámbito local se crea con el código entre llaves {}"
from Victor de Buen)
A way to create those two Set variables is avoiding the name of each Set contents:
Daniel