[squeakland] Parameters

Christine Murakami cmurakami at columbusschoolforgirls.org
Mon Mar 28 12:16:23 EDT 2011


Thanks Bert, Pato, and Ricardo! Very helpful information!! I appreciate your time and knowledge.

Christine

-----Original Message-----
From: squeakland-bounces at squeakland.org [mailto:squeakland-bounces at squeakland.org] On Behalf Of squeakland-request at squeakland.org
Sent: Monday, March 28, 2011 9:59 AM
To: squeakland at squeakland.org
Subject: squeakland Digest, Vol 95, Issue 18

Send squeakland mailing list submissions to
	squeakland at squeakland.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.squeakland.org/mailman/listinfo/squeakland
or, via email, send a message with subject or body 'help' to
	squeakland-request at squeakland.org

You can reach the person managing the list at
	squeakland-owner at squeakland.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of squeakland digest..."


Today's Topics:

   1. Re: What is a parameter in etoys? (Ricardo Moran)


----------------------------------------------------------------------

Message: 1
Date: Mon, 28 Mar 2011 10:58:56 -0300
From: Ricardo Moran <richi.moran at gmail.com>
To: Bert Freudenberg <bert at freudenbergs.de>
Cc: Mailinglist Squeakland <squeakland at squeakland.org>
Subject: Re: [squeakland] What is a parameter in etoys?
Message-ID:
	<AANLkTi=B814HOVNhnct6JdmFS9o0ktEgm38xYyUCGqb=@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Great explanation! I didn't know the difference between "arguments" and "parameters" :) BTW, is this written somewhere? It would be cool to add it to the manual...


On Mon, Mar 28, 2011 at 10:02 AM, Bert Freudenberg <bert at freudenbergs.de>wrote:

> On 28.03.2011, at 14:17, Christine Murakami wrote:
>
> Do you have some documentation on how parameters work in Etoys and 
> what they can accomplish? I looked it up in your Floss manual but it 
> was unclear to me where to find that information.
>
>
> Many tiles in Etoys have a parameter. It is a value that influences 
> the behavior of that tile.
>
> For example, the "forward by" tile has a parameter that specifies how 
> far the object should move. The "make sound" parameter specifies which 
> sound to make. Etc.
>
> You can also make your own tiles. When you create a new script, a tile 
> for it is placed in an object's "scripts" viewer category. That tile 
> can be used in another script.
>
> The "add parameter" menu entry lets you add a parameter to your own tile.
> If you use that new tile in another script, you can set a specific 
> value for the parameter just like with any other tile.
>
> Inside the script for your tile, that parameter is shown in the title bar.
> It is called "number" (unless you change the parameter type). You drag 
> this "number" tile and use it like any variable tile in that script.
>
> E.g. in this script, I used the "number" tile four times:
>
>
> Every time you use your new tile, you can give it another "concrete" value.
> That's why in the script itself, you only have the "abstract" value 
> called "number". (Computer scientists call the concrete values 
> "arguments" and the abstract values "parameters", but even programmers 
> get confused about the
> distinction)
>
>
> Note that after adding a parameter, you can not set your script to 
> "ticking" anymore, because it now needs a parameter. It only gets a 
> concrete value for the parameter from another script where your tile is used.
> Additionally, you can set a value in the viewer, and hit the yellow 
> button to run your script with that value:
>
>
> - Bert -
>
>
> _______________________________________________
> squeakland mailing list
> squeakland at squeakland.org
> http://lists.squeakland.org/mailman/listinfo/squeakland
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakland.org/pipermail/squeakland/attachments/20110328/791ef023/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 26160 bytes
Desc: not available
URL: <http://lists.squeakland.org/pipermail/squeakland/attachments/20110328/791ef023/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 15851 bytes
Desc: not available
URL: <http://lists.squeakland.org/pipermail/squeakland/attachments/20110328/791ef023/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 4833 bytes
Desc: not available
URL: <http://lists.squeakland.org/pipermail/squeakland/attachments/20110328/791ef023/attachment-0002.png>

------------------------------

_______________________________________________
squeakland mailing list
squeakland at squeakland.org
http://lists.squeakland.org/mailman/listinfo/squeakland


End of squeakland Digest, Vol 95, Issue 18
******************************************


More information about the squeakland mailing list