Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Local Variables
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
marktyers  
View profile  
 More options Aug 6 2010, 8:20 am
From: marktyers <markty...@gmail.com>
Date: Fri, 6 Aug 2010 05:20:41 -0700 (PDT)
Local: Fri, Aug 6 2010 8:20 am
Subject: Local Variables
I am not sure if this is a missing feature or something I have not
picked up on. There is a system for declaring global variables but I
can't figure out how to declare local ones (such as in a procedure or
an event handler. As programs become more complex it is important to
limit the scope of variables to avoid annoying bugs. We also need to
teach this in our courses where we planned to use App Inventor.

Can anyone help.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike dg  
View profile  
 More options Aug 6 2010, 8:34 am
From: Mike dg <vinb...@gmail.com>
Date: Fri, 6 Aug 2010 05:34:33 -0700 (PDT)
Local: Fri, Aug 6 2010 8:34 am
Subject: Re: Local Variables
Hi,

Have you considered creating a procedure and adding arguments for
every "local" variable. It's not ideal, and may confuse some when they
go to a real programming language, but it's slightly better than just
all global variables imo.

Mike dg

On Aug 6, 8:20 am, marktyers <markty...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
marktyers  
View profile  
 More options Aug 6 2010, 10:20 am
From: marktyers <markty...@gmail.com>
Date: Fri, 6 Aug 2010 07:20:15 -0700 (PDT)
Local: Fri, Aug 6 2010 10:20 am
Subject: Re: Local Variables
So reading between the lines – there are no local variables?

Google, any chance of adding these. Makes teaching programming
difficult not to mention creating robust code...

On Aug 6, 1:34 pm, Mike dg <vinb...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Victor Slade  
View profile  
 More options Aug 6 2010, 10:34 pm
From: Victor Slade <victorlsl...@gmail.com>
Date: Fri, 6 Aug 2010 19:34:04 -0700 (PDT)
Local: Fri, Aug 6 2010 10:34 pm
Subject: Re: Local Variables

On Aug 6, 8:20 am, marktyers <markty...@gmail.com> wrote:

> I am not sure if this is a missing feature or something I have not
> picked up on. There is a system for declaring global variables but I
> can't figure out how to declare local ones (such as in a procedure or
> an event handler. As programs become more complex it is important to
> limit the scope of variables to avoid annoying bugs. We also need to
> teach this in our courses where we planned to use App Inventor.

> Can anyone help.

Quoting from http://appinventor.googlelabs.com/learn/reference/blocks/definition.html

"Note: In the current version of App Inventor, argument names in an
app must be unique, even across procedures. For example you can't have
two name procedures each with a variable named "x". When you try to
create the second "x" block, App Inventor will not accept that name.
This restriction will be relaxed in the future. "

Now I don't know if this is definitely saying we will get local
variables or not.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hal Abelson  
View profile  
 More options Aug 7 2010, 10:12 am
From: Hal Abelson <halabel...@google.com>
Date: Sat, 7 Aug 2010 10:12:48 -0400
Local: Sat, Aug 7 2010 10:12 am
Subject: Re: Local Variables

We're planning on adding local variables (no ETA).  We agree that these are
important for teaching programming.

==Hal


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
marktyers  
View profile  
 More options Aug 7 2010, 1:55 pm
From: marktyers <markty...@gmail.com>
Date: Sat, 7 Aug 2010 10:55:29 -0700 (PDT)
Local: Sat, Aug 7 2010 1:55 pm
Subject: Re: Local Variables
Hi Hal
that is good new indeed!

On Aug 7, 3:12 pm, Hal Abelson <halabel...@google.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »