#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
| Status: | new → assigned |
|---|
comment:2 Changed 21 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:3 Changed 19 years ago by
| bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000065 |
|---|
Note: See
TracTickets for help on using
tickets.

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)