This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-12-09 17:57:17

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

I made a block, but I don't know what it does.

Yes, you read that correctly. I don't know what my own block does.

The commandSpec is this:

Code:

('pop' #s #popStackFrame)

and I just don't have any idea what it does or even if it's useful at all. As far as I can tell, it does nothing.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#2 2010-12-09 18:28:54

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: I made a block, but I don't know what it does.

Looks like some pretty low-level stuff having to do with variable storage and scoping...
I don't know Squeak but I have a basic grasp of programming language design. Read up on stack frames here.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#3 2010-12-09 19:26:51

ESN
New Scratcher
Registered: 2010-12-03
Posts: 100+

Re: I made a block, but I don't know what it does.

Code:

http://i52.tinypic.com/jphn61.png

Image code for you  smile


http://is.gd/jZ5chhttp://is.gd/jZhXDhttp://is.gd/jZhU7

Offline

 

#4 2010-12-09 19:56:55

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: I made a block, but I don't know what it does.

ESN wrote:

http://i52.tinypic.com/jphn61.png
Image for you  smile

GAH!!!!!!!!!!!!! NO!!!!!!!!!!!!!! THE BLOCK DOESN'T MAKE A POPPING NOISE!!!!!!!!!!!!!!
Sorry. I don't really NEED any image code anyways.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#5 2010-12-09 20:08:01

ESN
New Scratcher
Registered: 2010-12-03
Posts: 100+

Re: I made a block, but I don't know what it does.

rubiks_cube_guy238 wrote:

ESN wrote:

http://i52.tinypic.com/jphn61.png
Image for you  smile

GAH!!!!!!!!!!!!! NO!!!!!!!!!!!!!! THE BLOCK DOESN'T MAKE A POPPING NOISE!!!!!!!!!!!!!!
Sorry. I don't really NEED any image code anyways.

I know, it just seemed so fitting  tongue

But I don't see any use for StackFrames in Scratch: and the instruction your block gives makes no sense.


http://is.gd/jZ5chhttp://is.gd/jZhXDhttp://is.gd/jZhU7

Offline

 

Board footer