dMZX Forums: Built-in "End" label -> Rejected Requests -> Tracker

Jump to content

Report ID 452 Title Built-in "End" label
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 #452: Built-in "End" label

#1 User is offline  
Old-Sckool 

  • megazeux breaker
  • PipPipPipPip
  • Group: Members
  • Posts: 649
  • Joined: 07-June 05
  • Gender:Male

Posted 25 May 2012 - 03:10 AM

I like lazy things :pinkieshrug:

Basically, I'd like to see the following code terminate the robot, instead of having to create a label that calls end.

if "condition" = 1 goto "END"

<Nadir> mzxers don't make GAMES, usually
<phthalocyanine> they make experiences.
<Nadir> demos, more like
<Nadir> a glimpse into what could have been if mzx wasn't such a bore to work with
<Nadir> actually, i'm being unfair
<Nadir> i would have made mzx games if it was capable of running on more than 20 computers worldwide in 1998
<Nadir> >:D

<%Alice> functor
<%nooodl> i hear C++ has a thing called functors and they're completely different from Haskell functors...
<rorirover> the result is the most horrid thing in C++, it's basically black magic and it transforms any code you're writing into some eldritch monstrosity


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

Replies (1 - 4)

#2 User is online  
Lachesis 

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

Posted 25 May 2012 - 02:50 PM

Updating status to: Awaiting Feedback

This would be neat and I've wanted similar things in the past but it's not really much of a substitute for adding some sort of actual if/else structure.

if "condition" = 1
end
else
if "condition" = 2
* ":pinkieshrug:/>"
else
explode 15
. "code continues for condition=2"

. "or"

start switch "condition"
case 1
end
case 2
* ":pinkieshrug:/>"
abort switch
default
explode 15
end switch


I'm not really a fan of either of these options, which will come up against the exact same issues loop has. I'd like to have code blocks in Robotic (which would fix the issue with nested loops) but who knows if that's ever going to happen. If that happened, the format would be more like a real language (using debytecode):

if condition = 1
  end
else
if condition = 2
{
  * ":pinkieshrug:/>"
}
else
  explode 15

loop
{
  . "code.  always executed at least once"
}
while LOOPCOUNT < 20

while LOOPCOUNT < 20
{
  . "code.  maybe doesn't executed :pinkieshrug:/>"
}

"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 online  
Lachesis 

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

Posted 11 June 2012 - 06:10 PM

Updating status to: Flagged For Future Version

Code blocks are part of Exo's roadmap. Flagged.
"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 online  
Lachesis 

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

Posted 08 December 2012 - 05:18 AM

Updating status to: Rejected

I'm moving this to Rejected because the actual request here isn't going to happen. Code blocks would still be very nice.
"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

#5 User is online  
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

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.