#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
Status: | new → assigned |
---|
comment:2 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 Changed 16 years ago by
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" );
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