Scratch is one of the only programming languages I know which doesn't support these.
If you don't have a clue what I'm on about, here's a C snippet of pseudo-code:
// THIS CODE IS PSEUDO CODE. IT WILL NOT COMPILE
main()
{
printf("Double = ( getDouble(2) ) " );
}
int getDouble(int number)
{
return number * 2 ;
}
It would be really helpful if Scratch would support this. If you've anything to add...
Offline
Yes, well, first scratch needs functions!
It would not be too hard to add return values to these, but the MIT team wants to keep it easy to use for younger children.
You can use variables...
Or, jens' BYOB may be what you're looking for.
Offline