Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Snap! user discussion
- Jens
-
100+ posts
Snap! user discussion
yes. The error message is quite clear about that. I've specifically written that error message for this case, so you get it in plain English.
- MrGoldsClass
-
2 posts
Snap! user discussion
Whats the best way to share the changing location of a sprite between sprites?
Thanks!
Thanks!
- liam48D
-
1000+ posts
Snap! user discussion
Probably with parent/child sprite relationships.. I'm not sure of the best way to explain it. Jens? Whats the best way to share the changing location of a sprite between sprites?
Thanks!
![](http://cdn.scratch.mit.edu/scratchr2/static/__1715086c15b6be5a55a89875ebe52dac__/djangobb_forum/img/smilies/tongue.png)
202e-202e-202e-202e-202e UNI-CODE~~~~~
- xly
-
100+ posts
Snap! user discussion
You can try this, see: Whats the best way to share the changing location of a sprite between sprites?
Thanks!
http://snap.berkeley.edu/snapsource/snap.html#present:Username=xleroy&ProjectName=oopxl
- liam48D
-
1000+ posts
Snap! user discussion
No problem. I /unread all of the Advanced Topics (and also Developing Scratch Extensions and Open Source Projects) at least twice a day.Um..Thanks for keeping up with the rest of the forum for us!
![](http://cdn.scratch.mit.edu/scratchr2/static/__1715086c15b6be5a55a89875ebe52dac__/djangobb_forum/img/smilies/smile.png)
(only the bold forum topics, i.e. topics that have posts I haven't looked at yet)
202e-202e-202e-202e-202e UNI-CODE~~~~~
- Hardmath123
-
1000+ posts
Snap! user discussion
liam48D, your avatar is missing a lambda extrusion.
- liam48D
-
1000+ posts
Snap! user discussion
It's not Alonzo, it's Gobo.. liam48D, your avatar is missing a lambda extrusion.
![](http://cdn.scratch.mit.edu/scratchr2/static/__1715086c15b6be5a55a89875ebe52dac__/djangobb_forum/img/smilies/wink.png)
I'm making a project with a bunch of new style profile pictures based on the Scratch mottos.
202e-202e-202e-202e-202e UNI-CODE~~~~~
- gdpr533f604550b2f20900645890
-
1000+ posts
Snap! user discussion
Hello, in an attempt to understand Y combinator, I am attempting to recreate Btilly's code, here: http://stackoverflow.com/questions/93526/what-is-a-y-combinator
I am writing an anonymous function which uses the Y combinator to call itself, and report a factorial. The entire curried function is placed in a say block, so the sprite can produce output. However, the report block is a stack block, and the call block's ring can only accept reporter statements. Aside from making a named custom reporter, how can I use the report block?
The fact that the block that returns a value is a stack block, and therefore cannot be called, only ran, is very ironic.
I am writing an anonymous function which uses the Y combinator to call itself, and report a factorial. The entire curried function is placed in a say block, so the sprite can produce output. However, the report block is a stack block, and the call block's ring can only accept reporter statements. Aside from making a named custom reporter, how can I use the report block?
The fact that the block that returns a value is a stack block, and therefore cannot be called, only ran, is very ironic.
- Jonathan50
-
1000+ posts
Snap! user discussion
http://stackoverflow.com/questions/93526/what-is-a-y-combinatorI thought Y combinator was a company that (donated to? somethinged? invested in? uhh) startups. Hello, in an attempt to understand Y combinator, I am attempting to recreate Btilly's code, here:
I am writing an anonymous function which uses the Y combinator to call itself, and report a factorial. The entire curried function is placed in a say block, so the sprite can produce output. However, the report block is a stack block, and the call block's ring can only accept reporter statements. Aside from making a named custom reporter, how can I use the report block?
The fact that the block that returns a value is a stack block, and therefore cannot be called, only ran, is very ironic.
Not yet a Knight of the Mu Calculus.
- gdpr533f604550b2f20900645890
-
1000+ posts
Snap! user discussion
The Y Combinator is something from lambda calculus, which I *kind of* understand, but am still trying to grasp. It's basically a way to get an anonymous function to call itself recursively, by accepting itself as a parameter. I'm hoping that using Snap! will help me. I think that the company was named after the lambda concept.http://stackoverflow.com/questions/93526/what-is-a-y-combinatorI thought Y combinator was a company that (donated to? somethinged? invested in? uhh) startups. Hello, in an attempt to understand Y combinator, I am attempting to recreate Btilly's code, here:
I am writing an anonymous function which uses the Y combinator to call itself, and report a factorial. The entire curried function is placed in a say block, so the sprite can produce output. However, the report block is a stack block, and the call block's ring can only accept reporter statements. Aside from making a named custom reporter, how can I use the report block?
The fact that the block that returns a value is a stack block, and therefore cannot be called, only ran, is very ironic.
- gdpr533f604550b2f20900645890
-
1000+ posts
Snap! user discussion
Wait, I made a dumb mistake. I don't need the report block, because I can simply insert the expression to return into the ring.
- bharvey
-
1000+ posts
Snap! user discussion
It would definitely simplify our lives if every block reported a value, as in Lisp. And, even though you were able to solve your problem by just calling an expression, sometimes you do need to call a multi-step script that ends with a report block. To do so, drag a command-shaped ring from the top of the Operators palette into the existing ring slot in CALL, and it'll replace the reporter-shaped one. However, the report block is a stack block, and the call block's ring can only accept reporter statements. Aside from making a named custom reporter, how can I use the report block?
Note: Snap! uses applicative order evaluation, and so technically you can't use the Y combinator itself; you have to use the more complicated applicative-order variant. But for most purposes you can just use
![](http://imageshack.com/a/img924/5965/T0nFcW.png)
which, technically, isn't a combinator at all, but gets the job done.
The company, which invests in startups, was founded by Paul Graham, who made his fortune by getting software projects running a lot faster than his competitors, because he wrote it in Lisp. See I thought Y combinator was a company that (donated to? somethinged? invested in? uhh) startups.http://www.paulgraham.com/avg.html for example. Anyway, he named the company after the lambda calculus recursion operator.
![](http://cs.berkeley.edu/~bh/sig5.png)
- gdpr533f604550b2f20900645890
-
1000+ posts
Snap! user discussion
In some other programming languages, functions can be called as stand-alone statements even if they return values. Though this would fundamentally change Snap!, perhaps stack blocks and reporters could both be used as statements or expressions? If a process which doesn't return a value is used in an expression, Snap! could send an error like “Void isn't an acceptable type for this block.”It would definitely simplify our lives if every block reported a value, as in Lisp. And, even though you were able to solve your problem by just calling an expression, sometimes you do need to call a multi-step script that ends with a report block. However, the report block is a stack block, and the call block's ring can only accept reporter statements. Aside from making a named custom reporter, how can I use the report block?
- bharvey
-
1000+ posts
Snap! user discussion
!, perhaps stack blocks and reporters could both be used as statements or expressions?Yeah, but that would totally jettison our Scratch heritage. Even though I like to say "Snap Though this would fundamentally change Snap! is Scheme disguised as Scratch," it really is Scratch, too. It helps that kids come to Snap! already knowing how to do a lot of things in it.
The metaphor of stack blocks snapping into each other like Lego bricks would vanish, among other things, which means we lose the way the interface prevents many syntax errors.
Basically, I'd love it for my own projects, but we'd end up with a language nobody else would use, probably. Well, you and me, I guess.
![](http://cdn.scratch.mit.edu/scratchr2/static/__7afa96a260e11756e62d6c3e4a3eec17__/djangobb_forum/img/smilies/smile.png)
![](http://cs.berkeley.edu/~bh/sig5.png)
- djdolphin
-
1000+ posts
Snap! user discussion
I finally got a somewhat concrete answer. “Probably.” I'll have to ask my parents if I can go to Scratch Day again.
![](http://cdn.scratch.mit.edu/scratchr2/static/__7afa96a260e11756e62d6c3e4a3eec17__/djangobb_forum/img/smilies/big_smile.png)
!
- bharvey
-
1000+ posts
Snap! user discussion
Yay! Just assume it's a yes and as soon as tickets are available, tell them you need their credit card… “Probably.”
![](http://cs.berkeley.edu/~bh/sig5.png)
- nathalierun
-
7 posts
Snap! user discussion
Hello,
I am a french teacher (from Reunion Island) and I love your adaptation of Scratch to make our own blocks.
I don't find the “set color effect” anywhere in the “Looks” scripts.
I wanted to adapt this project https://scratch.mit.edu/projects/982045 and I don't know how to do.
I have to present Snap to other teachers on next wednesday.
Thank's for any help.
Nathalie
I am a french teacher (from Reunion Island) and I love your adaptation of Scratch to make our own blocks.
I don't find the “set color effect” anywhere in the “Looks” scripts.
I wanted to adapt this project https://scratch.mit.edu/projects/982045 and I don't know how to do.
I have to present Snap to other teachers on next wednesday.
Thank's for any help.
Nathalie