Main Menu

(Bug Discussion) Program will not compile (run) if too many ELSE IF's

Started by Hungry Horace, 05 Dec, 2012, 08:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hungry Horace

Program will not compile (run) if too many ELSE IF's iirc.
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


SamuraiCrow

@Hungry Horace

Amos doesn't support the Else If construct, IIRC.  You just have to put in enough EndIf statements to close each If.

Hungry Horace

Quote from: SamuraiCrow on 05 Dec, 2012, 09:09 PM
@Hungry Horace

Amos doesn't support the Else If construct, IIRC.  You just have to put in enough EndIf statements to close each If.

AMOS Pro supports ELSE IF with only one ENDIF against the initial IF,  and I am sure freaks-out if you use too many (i'm talking, 20+ or something, i forget) ... i do use ELSE IF all the time!

I noticed this bug some years ago working on my Bloodwych Editor.

EDIT: just tested and reproduced this bug. The problem only occurs when compiling, not interpreted.... the system GURUs


EDIT 2:  amos program attached. this program will compile. un-comment the 51st ELSE IF and it will no longer compile. (locks-up / freezes)  .... i had even more added and a full GURU occurred.
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff