#435 closed defect (remind)
Struct doing weird things...
Reported by: | jimarin | Owned by: | Víctor de Buen Remiro |
---|---|---|---|
Priority: | highest | Milestone: | |
Component: | Kernel | Version: | head |
Severity: | blocker | Keywords: | |
Cc: |
Description
At least in my modest oppinion...
In CVS 2006-08-17 version if I do:
Struct Wea {
Text Code
};
I get a syntax error:
ERROR: [2] Unexpected close symbol } in character 1 of line 3:
Code line
1 : Struct Wea {
2 : Text Code
3 > };
I think we should be able to declare structures with just one element, shouldn't we?
jima
Change History (3)
comment:1 Changed 19 years ago by
Owner: | changed from danirus to Víctor de Buen Remiro |
---|
comment:2 Changed 19 years ago by
Resolution: | → remind |
---|---|
Status: | new → closed |
comment:3 Changed 18 years ago by
bug_file_loc: | → http://www.tol-project.org |
---|
Note: See
TracTickets for help on using
tickets.
Problem is not the number of fields but you are using the name of type Code as field name and parsing is not prepared to this feature. So if you write this
Struct Wea {
};
then no error will be displayed.
The parser could be modified to accept this syntax but this is not a prioritary target now.
Thanks to report.