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

Closed 19 years ago

Last modified 18 years ago

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

Owner: changed from danirus to Víctor de Buen Remiro

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

Resolution: remind
Status: newclosed

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 {

Text code

};

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.

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.