function table:continue() not allowed

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

function table:continue() not allowed

Post by Bugala » Wed Sep 18, 2019 11:52 am

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: 3216
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: function table:continue() not allowed

Post by airsoftsoftwair » Wed Sep 18, 2019 10:12 pm

Feature. "Continue" is a reserved keyword and cannot be used as a variable.

Bugala
Posts: 825
Joined: Sun Feb 14, 2010 7:11 pm

Re: function table:continue() not allowed

Post by Bugala » Thu Sep 19, 2019 1:10 pm

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: 198
Joined: Sun Feb 14, 2010 12:38 pm
Location: Dresden / Germany

Re: function table:continue() not allowed

Post by Clyde » Thu Sep 19, 2019 4:37 pm

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 8 with Windows IDE

Bugala
Posts: 825
Joined: Sun Feb 14, 2010 7:11 pm

Re: function table:continue() not allowed

Post by Bugala » Thu Sep 19, 2019 6:16 pm

yeah, its not a big deal, just a slight uncomfort.

User avatar
emeck
Posts: 80
Joined: Fri Apr 03, 2015 3:17 pm

Re: function table:continue() not allowed

Post by emeck » Thu Sep 19, 2019 6:56 pm

I would use:

Video:Resume
Scroll:Resume
Game:Resume
PowerBook 5.2 MorphOS 3.12
PowerBook 5.8 MorphOS 3.12
Amiga 1200 BPPC/BVision AOS4.1 FE

Bugala
Posts: 825
Joined: Sun Feb 14, 2010 7:11 pm

Re: function table:continue() not allowed

Post by Bugala » Thu Sep 19, 2019 9:26 pm

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

Post Reply