#139 closed defect (fixed)
Function Description when you don´t define PutDescription
Reported by: | jlaybar | Owned by: | danirus |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Various | Version: | head |
Severity: | normal | Keywords: | |
Cc: |
Description
If you define a TOL function and don´t include a description for it using
PutDescription then TOL should write the code of the function instead of the
description.
The problem is that TOL gets confused when printing that code.
Change History (3)
comment:1 Changed 21 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Summary: | Function Description when you don´t define PutDescription → Function Description when you don´t define PutDescription |
comment:2 Changed 21 years ago by
I forgot to mention that now we need to use variable DoUnparseNodes to activate
Unparse function in each node. We can see this better with an example:
With this code:
_
Real x = {
Real a = 1;
Text a = "Hola";
TRUE
};
We get the message:
_
ERROR: Variable 'a' already defined.
Note: You can see the sentence where Variable "a" has been created by setting
DoUnparseNodes global variable to 1
Variable "Text a" can not be created
But if we set DoUnparseNodes first:
_
Real (DoUnparseNodes:=1);
Real x = {
Real a = 1;
Text a = "Hola";
TRUE
};
The message is more verbose:
_
ERROR: Variable 'a' already defined as "Real a = 1"
Variable "Text a" can not be created
comment:3 Changed 18 years ago by
bug_file_loc: | → http://www.tol-project.org |
---|
This bug has been resolved with the code uploaded to resolve bug 120.