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

#65 closed defect (fixed)

TOL does not give ERROR...

Reported by: Alfredo Torre Owned by: danirus
Priority: highest Milestone:
Component: Kernel Version: head
Severity: critical Keywords:
Cc:

Description

Try to run this 4 lines... TOL does not give ERROR when it has to create 'p'
and it's able to show it in Objects Inspector.

Text t = "1";
Struct tSt (Text t1);
Set s = tSt(t);
Polyn p = s->t1;

Change History (3)

comment:1 Changed 21 years ago by danirus

Status: newassigned

comment:2 Changed 21 years ago by danirus

Resolution: fixed
Status: assignedclosed

This bug has been resolved. Update graimp.cpp from CVS to solve it.

The problem was that Evaluate method trust always in castingFunction_ call, but this function
could returns with a null BSyntaxObject.

In BGrammar::Evaluate(List*) method, when a returned result (BSyntaxObject*) has different
type than (this) object (BGrammar), a castingFunction_ is called, but its output could have no
value. To control that, Evaluate method needs an else branch, returning null value.

(We need to improve Error Information, maybe a static object could collect all attributes
related with an error before show the message)

comment:3 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_000065
Note: See TracTickets for help on using tickets.