From: Sean O'Halpin Date: 2005-10-15T02:45:35+09:00 Subject: Re: Default argument values for blocks On 10/14/05, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: Default argument values for blocks" > on Thu, 13 Oct 2005 08:31:15 +0900, Sean O'Halpin writes: > > |For instance_eval, how about simply > | > | instance_eval(*args, &block) > | > |i.e. if it has a block, then the arguments are passed to it. > |e.g. > | > | instance_eval(1,2,3) {|a,b,c| ...} > | instance_eval(1,2,3, &block) > > I will supply something behave like this, but with a different name > from instance_eval. I'm thinking of instance_exec() right now. > > matz. How about instance_call()? On the analogy with Proc.call(). Sean