Cant use MyTable.Continue as a function name.

Report any Hollywood bugs here
Post Reply
Bugala
Posts: 1252
Joined: Sun Feb 14, 2010 7:11 pm

Cant use MyTable.Continue as a function name.

Post by Bugala »

Just noticed it gives an error when trying to use Function name Continue connected to table.

It is understandable that

Code: Select all

Function Continue()
doesn't work, since that is a reserved word, but even

Code: Select all

Function Mytable.Continue()
is forbidden is a bit strange.
User avatar
airsoftsoftwair
Posts: 5615
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Cant use MyTable.Continue as a function name.

Post by airsoftsoftwair »

Not a bug. It's illegal to use reserved words as table items. You can't do something like this either:

Code: Select all

t.if = 1
Post Reply