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

#140 closed defect (invalid)

error of the 'Eval'

Reported by: Javier Gallardo Owned by: manuelb
Priority: normal Milestone:
Component: Various Version: head
Severity: normal Keywords:
Cc: jlaybar

Description

the following code:

Eval("Serie a = CalInd(WD(1), Diario);");
Eval("Serie {a := CalInd(WD(2), Diario)};");

show a warning message and it does not do it

Change History (6)

comment:1 Changed 21 years ago by manuelb

Owner: changed from danirus to manuelb

comment:2 Changed 21 years ago by manuelb

Status: newassigned

comment:3 Changed 21 years ago by manuelb

As Victor tells us in the usuarios-tol list, using Eval as follows solves the problem:

Serie Eval("Serie a = CalInd(WD(1), Diario);");
Serie Eval("Serie {a := CalInd(WD(2), Diario)};");

Anyway, it seems probable that something has to be done about all this, bacause not
allways an Eval call will have just a line of code, so that it will NOT return just one
BSyntaxObject.

comment:4 Changed 21 years ago by manuelb

Cc: jlaybar added

comment:5 Changed 21 years ago by manuelb

* Bug 141 has been marked as a duplicate of this bug. *

comment:6 Changed 19 years ago by Víctor de Buen Remiro

Resolution: invalid
Status: assignedclosed

Sorry but allways an Eval call will return just one BSyntaxObject.
This is not a bug and there are no problem about Eval function behaviour.
You must specify the type of requiered object before Eval instead of inside it:

Serie Eval("a = CalInd(WD(1), Diario);");
Serie Eval("{a := CalInd(WD(2), Diario)};");

Thanks to report it

Note: See TracTickets for help on using tickets.