function table:continue() not allowed

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

function table:continue() not allowed

Post 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?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: function table:continue() not allowed

Post by airsoftsoftwair »

Feature. "Continue" is a reserved keyword and cannot be used as a variable.
Bugala
Posts: 1178
Joined: Sun Feb 14, 2010 7:11 pm

Re: function table:continue() not allowed

Post 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
User avatar
Clyde
Posts: 348
Joined: Sun Feb 14, 2010 12:38 pm
Location: Dresden / Germany

Re: function table:continue() not allowed

Post 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.
Currently using: Hollywood 9 with Windows IDE and Hollywood 9 with Visual Studio Code and hw4vsc
Bugala
Posts: 1178
Joined: Sun Feb 14, 2010 7:11 pm

Re: function table:continue() not allowed

Post by Bugala »

yeah, its not a big deal, just a slight uncomfort.
User avatar
emeck
Posts: 169
Joined: Fri Apr 03, 2015 3:17 pm

Re: function table:continue() not allowed

Post by emeck »

I would use:

Video:Resume
Scroll:Resume
Game:Resume
PowerBook 5.2 MorphOS 3.15
PowerBook 5.8 MorphOS 3.15
Amiga 1200 BPPC/BVision AOS4.1 FE
Bugala
Posts: 1178
Joined: Sun Feb 14, 2010 7:11 pm

Re: function table:continue() not allowed

Post by Bugala »

Good idea Emeck. Thanks from tip. Will use that instead.
Post Reply