Bugs: Browse | Submit New | Admin

[#29712] Block-level variables generate warning

Date:
2013-02-17 16:59
Priority:
3
Submitted By:
Ismail Tabtabai (itabtabai)
Assigned To:
Tom Copeland (tom)
Category:
None
State:
Closed
Summary:
Block-level variables generate warning

Detailed description
Using a ';' in a block-level variable |var1; var2| and having the -w option on would generate a warning.

If I use a comma, the warning is also generated. Shouldn't a semi-colon suppress the generation of the warning? Otherwise,
what's the use of the semi-colon if it does not tell the runtime that I know what I am doing by using a similar variable
name so I put it after the semi-colon.

The example I am using is in the pickaxe book of 2009 page: 77. samples/tutcontainers_31.rb

Add A Comment: Notepad

Please login


Followup

Message
Date: 2013-03-02 01:19
Sender: Tom Copeland

You may want to post this to a ruby mailing list; this tracker
is for rubyforge-specific issues.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
close_date2013-03-02 01:192013-03-02 01:19tom
assigned_tonone2013-03-02 01:19tom
status_idOpen2013-03-02 01:19tom