Hi,
the following snippet demonstrates a bug (?) in the
current cvs ...
---------
class G < Proc
def initialize(enum,sym = :each)
super()
@enum = enum
@sym = sym
end
def run
# the next line works in 1.6.5-cygwin but not in cvs
# @enum.send (@sym, &self)
# work around
@enum.send (@sym, *[], &self)
end
end
a = nil
t = G.new (1..4) {|b| print a*b }
a = -1
t.run # => -1-2-3-4
Christoph