[#9722] Kernel#system broken inside Dir.chdir(&block) if system command doesn't have shell characters — <noreply@...>

Bugs item #7278, was opened at 2006-12-14 13:59

8 messages 2006/12/14

[#9749] System V IPC in standard library? — Steven Jenkins <steven.jenkins@...>

Back in August, I needed a semaphore to serialize access to an external

14 messages 2006/12/19

[#9753] CVS freeze — SASADA Koichi <ko1@...>

Hi,

20 messages 2006/12/20
[#9755] Re: [ruby-dev:30039] CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

[#9757] Re: [ruby-dev:30040] Re: CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

Re: [ ruby-Bugs-7502 ] Parse bug with if/unless/while/until modifiers

From: Yukihiro Matsumoto <matz@...>
Date: 2006-12-30 16:48:20 UTC
List: ruby-core #9806
Hi,

In message "Re: [ ruby-Bugs-7502 ] Parse bug with if/unless/while/until modifiers"
    on Sun, 31 Dec 2006 01:41:05 +0900, <noreply@rubyforge.org> writes:

|Initial Comment:
|#i is undefined before this statement
|i if i=0
|-------------------------
|warning: found = in conditional, should be ==
|NameError: undefined local variable or method `i' for main:Object
|
|This bug occurs because i is used after i=0 but appears before it.

It's not a bug.  It's the feature.  Local variables are defined only
after the assignment.  This 'after' strictly means static appearance
order, not run-time execution order.  I have vague plan to address
this issue in the future, but anyway it's the feature right now.

							matz.

In This Thread

Prev Next