|This article or section contains information about a feature from a future version of Scratch that is unreleased and is subject to change. Please cite any additional info in order to prevent speculation.|
- "Methods" redirects here. For Squeak methods, see Squeak Tutorial#Methods.
Procedures, also called functions or methods, are a function in many programming languages, which allow common blocks of code to be called simply. Blocks in Scratch are procedures themselves, as they are blocks compiled code.
Procedures in Scratch
In Scratch 2.0, procedures will be implemented. There will be a "My Blocks" section, where procedures in the project are stored. The procedures will be local to each sprite. Procedures in Scratch 2.0 will only be Stack Blocks, not Reporter or Boolean block styles. It remains to see whether they will be recursive or not. Procedures are expected to take arguments.