--00c09f82cc65e0024e0478e71356
Content-Type: text/plain; charset=ISO-8859-1

Shugo,

I like this a lot. One final suggestion: instance_eval and class_eval should
take arguments like instance_exec. Then, the only difference between
instance_eval and instance_exec would be the constant lookup scope.

It also should not break any 1.8 code since instance_eval does not take
arguments in 1.8.

I'm very excited about this!

Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325


On Wed, Nov 18, 2009 at 10:38 PM, Shugo Maeda <shugo / ruby-lang.org> wrote:

> Hi,
>
> 2009/11/17 Shugo Maeda <shugo / ruby-lang.org>:
> > I guess we have four options now:
> >
> > (1) As you suggested, revert to the behavior of Ruby 1.8, and add a
> >    new method (or flag) to enable the new behavior.
>
> My proposal is as follows:
>
> (1) Revert instance_eval, class_eval, and module_eval back to the
> behavior of 1.8.
> (2) But do not revert instance_exec, class_exec, and module_exec.
>
> I have attached a patch.
> My patch also reverts the behavior of class variables, but it may be
> unnecessary.
>
> --
> Shugo Maeda
>

--00c09f82cc65e0024e0478e71356
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Shugo,<div><br></div><div>I like this a lot. One final suggestion: instance_eval and class_eval should take arguments like instance_exec. Then, the only difference between instance_eval and instance_exec would be the constantookup scope.</div>

<div><br></div><div>It also should not break any 1.8 code since instance_eval does not take arguments in 1.8.</div><div><br></div><div>I&#39;m very excited about this!</div><div><br clear="all">Yehuda Katz<br>Developer | Engine Yard<br>

(ph) 718.877.1325<br>
<br><br><div class="gmail_quote">On Wed, Nov 18, 2009 at 10:38 PM, Shugo Maeda <span dir="ltr">&lt;shugo / ruby-lang.org&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<br>
<br>
2009/11/17 Shugo Maeda &lt;shugo / ruby-lang.org&gt;:<br>
<div class="im">&gt; I guess we have four options now:<br>
&gt;<br>
&gt; (1) As you suggested, revert to the behavior of Ruby 1.8, and add a<br>
&gt;      <br>
</div>My proposal is as follows:<br>
<br>
(1) Revert instance_eval, class_eval, and module_eval back to the<br>
behavior of 1.8.<br>
(2) But do not revert instance_exec, class_exec, and module_exec.<br>
<br>
I have attached a patch.<br>
My patch also reverts the behavior of class variables, but it may be<br>
unnecessary.<br>
<br>
--<br>
<font color="#888888">Shugo Maeda<br>
</font></blockquote></div><br></div>

--00c09f82cc65e0024e0478e71356--