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

Closed 16 years ago

Last modified 16 years ago

#604 closed defect (fixed)

Cannot make a PutDescription on Structs

Reported by: Christian Paz Owned by: Víctor de Buen Remiro
Priority: highest Milestone:
Component: Kernel Version: head
Severity: minor Keywords:
Cc:

Description

(I don't know if it is a so relevant problem, but if it were easy, please correct)

When I define an structure and I try to put a description on it, it gives a syntax error

Struct StSimpleConfColumn
{

Real columnInFile, Text colName

};

Anything PutDescription("Struct for specifying column configuration when a single column is mapped to a Database field.", StSimpleConfColumn );

It gives:
ERROR: [2] Símbolo de cierre ) fuera de lugar en el carácter 141, línea 9:

Thanks in advance..
Christian

Change History (3)

comment:1 Changed 17 years ago by Víctor de Buen Remiro

Status: newassigned

It's very difficult to accept this syntax due to parser doesn't accept a struct name without arguments.

However it could be possible to create a new special function

Text PutStructDescription(Text desc, Text structName)

I will treat to do it for next release.

Thanks for reporting

comment:2 Changed 16 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: assignedclosed

(In [689]) User can modify description of a Struct by passing its name between quotes to PutDescription.
Fixes #604

comment:3 Changed 16 years ago by Víctor de Buen Remiro

Problem has been fixed at SVN in both 1.1.7 and trunk releases.
Struct can be passed between quotes

Struct StSimpleConfColumn
{
  Real columnInFile, Text colName
};
PutDescription("Struct for specifying column configuration when a single column is mapped to a Database field.", "StSimpleConfColumn" );
Note: See TracTickets for help on using tickets.