logo       

[jira] Commented: (BOO-251) Local variables not falling out of scope proper: msg#00026

lang.boo.devel

Subject: [jira] Commented: (BOO-251) Local variables not falling out of scope properly.

The following comment has been added to this issue:

Author: Arron Washington
Created: Fri, 11 Feb 2005 7:57 PM
Body:
Wow, OK. That feels slightly counter-intuitive (makes it kind of hard to reuse
variable names).

However, you *are* the language designer, so I'll assume your judgement's
better than mine. ;)
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/BOO-251?page=comments#action_29812

---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/BOO-251

Here is an overview of the issue:
---------------------------------------------------------------------
Key: BOO-251
Summary: Local variables not falling out of scope properly.
Type: Bug

Status: Unassigned
Priority: Major

Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown

Project: Boo
Components:
Compiler

Assignee:
Reporter: Arron Washington

Created: Fri, 11 Feb 2005 7:17 PM
Updated: Fri, 11 Feb 2005 7:57 PM
Environment: Latest Boo SVN. ;)

Description:
if true:
kipper = 1
elif false:
kipper = "FUTZ!"

Self-explainatory.

But, just to be redundant: kipper should have fallen out of scope once the "if"
block ended, and so should be available as a variable name in the elif block.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise