[Yarv-devel] runtime block inlining

Alexander Kellett ruby-lists at lypanov.net
Wed Oct 20 11:07:32 EDT 2004


On Thu, Oct 21, 2004 at 12:07:44AM +0900, SASADA Koichi wrote:
> 	proc_object = Proc.new{
> 	  # Block
> 	}
> 	proc_object.based_block #=> Block

interesting :)

> 	#=> inlined method
> 
> 	  def each_B_inlined
> 	    self.size.times{|i|
> 	      e = self[i]
> 	      begin # exception guard
> 	        p( e + prev_env(:i) )
> 	      rescue
> 	        ...
> 	      end
> 	    end
> 	  end

yup :)

i find it difficult to explain things
that i've only had ideas about and never
really explained or even had to write 
the code for :)

anything still confusing?
Alex


More information about the Yarv-devel mailing list