Hi,

In message "Question with for loop"
    on 02/02/26, Steve Shreeve <shreeve / s2s.org> writes:

|But, I'm not sure if there is anything like this in Ruby. Are there major 
|scoping issues why something like this will never be valid?

Yes.  Ruby's local variables should be "declared" before their access.
In your example,

|b.rpc("ORWORDG IEN", [val]) for val in ['O RX', 'I RX', 'UD RX', 'IV RX']

the variable "val" is used before its "declaration" (for val).  Ruby
cannot tell if the first "val" is a variable or not.

							matz.