goboscript icon indicating copy to clipboard operation
goboscript copied to clipboard

feat: list reporters

Open RixInGithub opened this issue 5 months ago • 3 comments

these things

a list reporter called "h" reporting the contents "this", "is", "real"
(notice how the reporter is a bit darker, like the lists orange rather than the variables orange)

listReporters.sb3.zip

ik this is useless but maybe this will be useful for someone else idk im too lazy to write

could be useful for joining lists by some delimeter which is hardcoded in scratch-vm internally

RixInGithub avatar Jul 23 '25 06:07 RixInGithub

This already works? Just write the name of the list and it becomes a list reporter if the list exists. We already use this as an optimization for some std/string functions (see strbuf list)

aspizu avatar Jul 23 '25 20:07 aspizu

This already works?

idk tbh

# This is a sprite.
costumes "blank.svg";
list something;

proc what l {
  say l, 2;
}

# when green flag clicked
onflag {
  add "idk" to something;
  what something;
}
Image

yeah pretty silly edge case if you ask me, idk

RixInGithub avatar Jul 24 '25 13:07 RixInGithub

Your bug is that in procedures to access the argument you need to use $ so it should be $l.

The-Arx avatar Sep 08 '25 06:09 The-Arx