From: Roger Pack Date: 2008-09-09T00:20:26+09:00 Subject: [ruby-core:18497] Re: [ANN] Ruby 1.9.1 feature freeze I think Trans' #source_location is nice. I would prefer to rewrite this patch to become RubyVM::InstructionSequence#source_location # or whatever name we use And then also provide Method#iseq and Proc#iseq methods To also provide the added capability of accessing Proc's iseq's [and disassembling it, etc.--currently unavailable] except I am having trouble creating Proc#iseq [Method#iseq is here[1]]. Any pointers on how to accomplish this? :) Thanks for your help. -=R [1] http://groups.google.com/group/ruby-core-google/browse_thread/thread/932c0ea1078e294a On Mon, Sep 8, 2008 at 3:36 AM, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: [ruby-core:18490] Re: [ANN] Ruby 1.9.1 feature freeze" > on Mon, 8 Sep 2008 18:05:05 +0900, Nobuyoshi Nakada writes: > > |At Sun, 7 Sep 2008 04:53:43 +0900, > |Yukihiro Matsumoto wrote in [ruby-core:18471]: > |> This is a proposal to add __file__ and __line__ methods to Method and > |> Proc objects. > > |I propose a new method, #location than those two new methods. > > I like the idea. How others think? > > matz. > > -- Thanks! -=R -- Thanks! -=R