dMZX Forums: Editor highlighting of statically bad arguments -> MegaZeux Feature Requests -> Tracker

Jump to content

Report ID 854 Title Editor highlighting of statically bad arguments
Product MegaZeux Feature Requests Status Flagged For Future Version (Severity 0 - None Assigned)
Version - Fixed in -

Page 1 of 1
  • Cannot start a new Issue
  • You cannot reply to this issue

Report ID #854: Editor highlighting of statically bad arguments

#1 User is offline  
Noser 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 01-May 24

Posted 05 May 2024 - 02:37 PM

If I have a goto where the destination is just a plain uninterpolated string, and there's no label matching that string, then I've probably left something unfinished or made a typo. The computer can be better than I am at looking at all the labels to see whether there's a matching one, and it could let me know about it (in a softer way than failing validation). Highlighting the label string in a different color seems like a good way for it to do that. (Of course, if there's any string interpolation involved, that's different; I imagine this highlight only happening to strings without interpolation.)

Similar logic applies in other cases, such as:
  • Teleporting to a nonexistent board name
  • Sending to a nonexistent robot name
  • Playing a MOD or SAM file that doesn't exist
  • Malformed expression
  • Out-of-range color or parameter value

and probably others.

Since robot names can change at runtime, and files can be written at runtime, a string that statically doesn't match those isn't necessarily actually wrong, but it's an unusual enough case that a non-binding "hey, this string is unusual" highlight from the editor still seems like a net positive.


Page 1 of 1  
  • Cannot start a new Issue
  • You cannot reply to this issue

Replies (1 - 1)

#2 User is offline  
Lachesis 

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

Posted 05 May 2024 - 04:21 PM

Updating status to: Flagged For Future Version
"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
  • You cannot reply to this issue

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


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