Wiki

Ticket #139 (closed defect: fixed)

Opened 16 years ago

Last modified 16 years ago

Cannot name a variable "int8variable"

Reported by: Chuck Owned by: eric.sellon
Priority: minor Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:

Description

This code gives an error:

class X

	def main is shared
		int8variable = 5  # error: Expecting EOL, but got "variable" (ID) instead.

The workaround is to put an underscore in front of the digit: int_8variable or int_8_variable

Attachments

ticket139.patch Download (1.3 KB) - added by eric.sellon 16 years ago.

Change History

Changed 16 years ago by eric.sellon

  • owner set to eric.sellon
  • status changed from new to assigned

Changed 16 years ago by eric.sellon

Changed 16 years ago by eric.sellon

The attached patch file fixes the problem described and also includes a test case expanded from the example in the description.

Changed 16 years ago by Chuck

  • status changed from assigned to closed
  • resolution set to fixed

Patch applied in changeset:2118

Note: See TracTickets for help on using tickets.