ID:2970629
 
BYOND Version:516
Operating System:Windows 8 Enterprise 64-bit
Web Browser:Firefox 137.0
Applies to:Dream Maker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
The string sugar for copytext does not behave the same as copytext and throws a poorly named exception.


Numbered Steps to Reproduce Problem:

Code Snippet (if applicable) to Reproduce Problem:
"str"[4] // Throws list index out of bounds
copytext("str", 4, 5) // Outputs ""


Expected Results:
Either it outputs an empty string like copytext(), or atleast the runtime is named better.

Actual Results:
It doesnt do those things
Does the problem occur:
Every time? Or how often? yeah
In other games? yeah
In other user accounts? yreah
On other computers? yeahhhhhh

When does the problem NOT occur? never

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? idk
Workarounds: no

I don't think that when accessing a string as a list, the index out of bounds error is either poorly named or wrong behavior, even if it doesn't fully match copytext() behavior.

Login to reply.