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

#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 danirus

Resolution: fixed
Status: newclosed
Summary: Function Description when you don´t define PutDescriptionFunction Description when you don´t define PutDescription

This bug has been resolved with the code uploaded to resolve bug 120.

comment:2 Changed 21 years ago by danirus

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 Víctor de Buen Remiro

bug_file_loc: http://www.tol-project.org
Note: See TracTickets for help on using tickets.