Page 1 of 1
function table:continue() not allowed
Posted: Wed Sep 18, 2019 11:52 am
by Bugala
On Windows 10 Windows IDE Hollywood 8:
Code: Select all
test = {}
Function test:continue()
EndFunction
says "line 3: variable expected!"
Bug or a feature?
Re: function table:continue() not allowed
Posted: Wed Sep 18, 2019 10:12 pm
by airsoftsoftwair
Feature. "Continue" is a reserved keyword and cannot be used as a variable.
Re: function table:continue() not allowed
Posted: Thu Sep 19, 2019 1:10 pm
by Bugala
not very handy when cannot use even in a context like that, after all, Continue can be very useful function name many times.
Video:Continue
Scroll:Continue
Game:Continue
Re: function table:continue() not allowed
Posted: Thu Sep 19, 2019 4:37 pm
by Clyde
Bugala wrote: ↑Thu Sep 19, 2019 1:10 pm
Video:Continue
Scroll:Continue
Game:Continue
Simple change to "DoContinue" e.g. That's the way I handle those cases.
Re: function table:continue() not allowed
Posted: Thu Sep 19, 2019 6:16 pm
by Bugala
yeah, its not a big deal, just a slight uncomfort.
Re: function table:continue() not allowed
Posted: Thu Sep 19, 2019 6:56 pm
by emeck
I would use:
Video:Resume
Scroll:Resume
Game:Resume
Re: function table:continue() not allowed
Posted: Thu Sep 19, 2019 9:26 pm
by Bugala
Good idea Emeck. Thanks from tip. Will use that instead.