Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement custom reporters #79
Sorry - I definitely don't mean for this to be a certain confirmation. We have a lot of work to do to determine if it will be included in Scratch 3.0.
But, we want to get started playing with the idea in scratch-vm to make sure we at least have the right code structure in its early stages to support things for this (I did mean "custom reporters").
I appreciate the excitement though :)
A couple of notes about implementation of procedures in 2.0:
Behavior is to yield if a call is detected to be recursive:
Detecting if a call is recursive seems to do a 5-layer thread stack search: https://github.com/LLK/scratch-flash/blob/5cff62b909856b7d7b3d116a5dcc2b4f03de8482/src/interpreter/Thread.as#L98
To me this looks like it can cause weird behavior, e.g.: https://scratch.mit.edu/projects/119356687/
Seems preferable to do an N-layer stack search (with whatever fast implementation) unless there was some reason for the 5-limit.
Procedures affect the "stop this script" block, which calls this: https://github.com/LLK/scratch-flash/blob/9c0728bfbe2f2ed1cff1c9f3af8d2a55552b99a5/src/interpreter/Interpreter.as#L672
The other interesting feature is the "warp thread", which:
Params are dealt with separately from general Scratch variables (
Edit: it actually looks like this issue was resolved. Never mind!