﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
146	General scope error	danirus	danirus	"With next code:
_______________________

  Real double(Real a) { a*a };
  Real a = 2;
  Real b = { double(Real a = 3) };
  Real c = 3;
_______________________

Tol shows a message about the duplicity of variable ""a"". This is an error of
scope, because the third sentence has an inside scope created with OpenToken ""{""
and CloseToken ""}"". The problem is related with a bad use of SEPARATOR Token
into Evaluation Engine (BGrammar::Evaluate).

To resolve Bug 96 (of Jaime López Aybar) this should be resolved first.

To be sure of the importance of SEPARATOR Token, try with this other piece of code:
_______________________

  Real double(Real a) { a*a };
  Real a = 2;
  Real b = { Real x = 1; double(Real a = 3) };
  Real c = 3;
_______________________

Now there is no problem. But now, variable ""a"" takes a wrong value. In ""double""
function variable ""a"" must be the global variable ""a"" (equal 2)."	defect	closed	lowest		Various	head	normal	fixed		
