On Nov 19, 2005, at 1:07 PM, Todd wrote:

> Hello, just 2 simple questions...
>
> 1. Why is it that you cannot have an iterator nested inside a
> conditional loop?  I'm sure there's a good reason, but it escapes me.

You can.  Please show us the code and we'll help you find the problem.

> 2. Is it possible in Ruby, from within a block, to modify variables
> that belong to the calling object?  Something similar to  
> Array#map!  Or
> must this be done in C?

Ruby's blocks are closures and thus can modify local variables from  
the binding of the caller.  Here again if you show us the code, we  
can probably help you find The Ruby Way of achieving your goal...

James Edward Gray II