dMZX Forums: Continue, Abort loop labels -> Rejected Requests -> Tracker

Jump to content

Report ID 442 Title Continue, Abort loop labels
Product Rejected Requests Status Rejected (Severity 0 - None Assigned)
Version - Fixed in -

Page 1 of 1
  • Cannot start a new Issue
  • Closed Issue This issue is locked

Report ID #442: Continue, Abort loop labels

#1 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,904
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 06 May 2012 - 03:50 PM

I think it'd be more convenient to have some sort of continue and abort loop labels that could be sent in a loop. These labels could reset the stack to where it was when the loop started, e.g. they can be called during subroutines, but that's not really a necessity. This is mostly to save me from having to come up with arbitrary label names every time I need something like this.

Old code:
loop start
if "bart&LOOPCOUNT&" = -1 "bartLoop5Continue"
if "bart&LOOPCOUNT&" = "desiredBartValue" "bartLoop5Abort"
. "bart manipulation here"
. "purposely obtuse logic so I can fit an abort loop in"
if "bart&LOOPCOUNT&" != "otherDesiredBartValue" "bartLoop5Continue"
abort loop
: "bartLoop5Continue"
loop "('barts'-1)"
. "create a new bart since since I didn't like any of the other ones"
inc "barts" 1
: "bartLoop5Abort"
. "do something here"


loop start
if "bart&LOOPCOUNT&" = -1 "$$continue"
if "bart&LOOPCOUNT&" = "bartValue" "$$abort"
. "bart"
. "purposely obtuse logic so I can show an alternative to abort loop"
if "bart&LOOPCOUNT&" = "bartValue#2" "$$continue"
goto "$$abort"
loop "('barts'-1)"
. "create a new bart since *IF* I didn't like any of the other ones"
inc "barts" "('LOOPCOUNT'='barts')"
. "do something here"

"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository


Page 1 of 1  
  • Cannot start a new Issue
  • Closed Issue This issue is locked

Replies (1 - 3)

#2 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,904
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 21 May 2012 - 05:08 AM

Updating status to: Flagged For Future Version
Updating severity to: 1 - Low

Stuff like this is part of Exo's original roadmap apparently. Best save it for when the bytecode changes start rolling in after the switch to debytecode.
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository

#3 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,904
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 08 December 2012 - 05:19 AM

Updating status to: Rejected
Updating severity to: 0 - None

We'll handle this without labels in debytecode.
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository

#4 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,904
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 08 December 2012 - 05:20 AM

Moving to: Rejected Requests


Page 1 of 1
  • Cannot start a new Issue
  • Closed Issue This issue is locked

0 User(s) are reading this issue
0 Guests and 0 Anonymous Users


Powered by IP.Tracker 1.3.2 © 2024  IPS, Inc.