Welcome, Guest. Please login or register.

Author Topic: Using "skip lab back" in scripts  (Read 3047 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Using "skip lab back" in scripts
« Reply #14 from previous page: December 19, 2010, 07:40:17 PM »
Quote from: motorollin;599962
Ahh ok, so does calling an external script wipe out the labels in the script that called it?
Execute from a script creates a temporary script file in T: which includes the script executed with rest of the original script appended. Thus you cannot 'skip back' to labels that reside before the execute command.

A
execute B
C

You can't reach A from C after the execute command (because the temporary script created only includes contents of B and C).
« Last Edit: December 19, 2010, 07:44:13 PM by Piru »
 

Offline kolla

Re: Using "skip lab back" in scripts
« Reply #15 on: December 19, 2010, 08:58:00 PM »
Amiga shell needs some more work in it :)
The hackish way script execution from within scripts is done has many unwanted and unexpected side effects and should be fixed, and I also miss being able to create functions and various loops.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Using "skip lab back" in scripts
« Reply #16 on: December 19, 2010, 09:15:34 PM »
@Piru
Thanks for the explanation. Very interesting :)

Have any of these issues with AmigaDOS been addressed in any of the NG AmigaOS flavours?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10