Instance_eval


#1

e$B1J0fe(B@e$BCNG=!%6e9)Bg$G$9!%e(B

e$B$3$3;C$/JQ2=$rDI$C$F$$$J$+$C$?$?$a$K5$IU$$$F$$$J$+$C$?$N$G$9$,!$e(B
Class.new(klass){|c| … } e$B$de(B instance_eval{|obj| … }
e$B$NN`$$$Ge(B
e$B%V%m%C%/0z?t$Ke(B self e$B$,EO$i$J$/$J$C$?$3$H$Ge(B
Ruby/Tk e$B$,2uLG>uBV$K$J$C$F$$$^$9!%e(B

e$BNc$($P!$e(BTkFrame.new{|f| TkButton.new(f, …) } e$B$J$I$Ne(B

e$B%Q%?!<%s$G$+$+$l$?%9%/%j%W%H$,2uLG$7$F$$$^$9!%e(B

e$B5DO@$r8+Mn$H$7$F$$$?$N$+$b$7$l$^$;$s$,!$e(B
e$B$3$NJQ99$O$I$&$7$F$bI,MW$J$b$N$J$N$G$7$g$&$+!%e(B
e$B>/$J$/$H$be(B 1.8 e$B7O$G$OBg$-$9$.$kJQ99$H;W$($k$N$G$9$,!%!%!%e(B


#2

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:28466] instance_eval”
on Fri, 24 Mar 2006 19:01:50 +0900, Hidetoshi NAGAI
removed_email_address@domain.invalid writes:

|e$B$3$3;C$/JQ2=$rDI$C$F$$$J$+$C$?$?$a$K5$IU$$$F$$$J$+$C$?$N$G$9$,!$e(B
|Class.new(klass){|c| … } e$B$de(B instance_eval{|obj| … } e$B$NN`$$$Ge(B
|e$B%V%m%C%/0z?t$Ke(B self e$B$,EO$i$J$/$J$C$?$3$H$Ge(B
|Ruby/Tk e$B$,2uLG>uBV$K$J$C$F$$$^$9!%e(B
|
|# e$BNc$($P!$e(BTkFrame.new{|f| TkButton.new(f, …) } e$B$J$I$Ne(B
|# e$B%Q%?!<%s$G$+$+$l$?%9%/%j%W%H$,2uLG$7$F$$$^$9!%e(B
|
|e$B5DO@$r8+Mn$H$7$F$$$?$N$+$b$7$l$^$;$s$,!$e(B
|e$B$3$NJQ99$O$I$&$7$F$bI,MW$J$b$N$J$N$G$7$g$&$+!%e(B
|e$B>/$J$/$H$be(B 1.8 e$B7O$G$OBg$-$9$.$kJQ99$H;W$($k$N$G$9$,!%!%!%e(B

e$BN;2r$G$9!#e(B1.8e$B7O$G$OLa$7$^$9!#$?$@$7!"e(B1.9e$B7O$G$O$3$N$^$^$J$N$G!"e(B
instance_exec()e$B$r;H$C$FFH<+$Ke(Bselfe$B$rEO$9$h$&$K$9$k$+!“L@<(E*e(B
e$B$Ke(Bselfe$B$r;H$&$h$&$K$9$k$+!”$J$I$N<jEv$F$,I,MW$K$J$k$H;W$$$^$9!#e(B


#3

e$B$1$$$8$e!w$$$7$D$+$G$9e(B.

In [ruby-dev:28467] the message: “[ruby-dev:28467] Re: instance_eval”,
on Mar/24 23:12(JST) Yukihiro M. writes:

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

|e$B$3$3;C$/JQ2=$rDI$C$F$$$J$+$C$?$?$a$K5$IU$$$F$$$J$+$C$?$N$G$9$,!$e(B
|Class.new(klass){|c| … } e$B$de(B instance_eval{|obj| … } e$B$NN`$$$Ge(B
|e$B%V%m%C%/0z?t$Ke(B self e$B$,EO$i$J$/$J$C$?$3$H$Ge(B

e$BN;2r$G$9!#e(B1.8e$B7O$G$OLa$7$^$9!#$?$@$7!"e(B1.9e$B7O$G$O$3$N$^$^$J$N$G!"e(B
instance_exec()e$B$r;H$C$FFH<+$Ke(Bselfe$B$rEO$9$h$&$K$9$k$+!“L@<(E*e(B
e$B$Ke(Bselfe$B$r;H$&$h$&$K$9$k$+!”$J$I$N<jEv$F$,I,MW$K$J$k$H;W$$$^$9!#e(B

e$B$9$$$^$;$se(B.
e$B$3$l$C$F$I$&$$$&JQ99$,$"$C$?$N$G$7$g$&$+e(B?
e$B;2>H@h$J$I$r65$($F$/$@$5$k$H$"$j$,$?$$$G$9e(B.

__
---------------------------------------------------->> e$B@PDMe(B
e$B7=<ye(B <<—
---------------------------------->> e-mail: removed_email_address@domain.invalid <<—


#4

In message “Re: [ruby-dev:28468] Re: instance_eval”
on Sat, 25 Mar 2006 01:17:52 +0900, removed_email_address@domain.invalid
(e$B@PDM7=<ye(B) writes:

|e$B$3$l$C$F$I$&$$$&JQ99$,$"$C$?$N$G$7$g$&$+e(B?
|e$B;2>H@h$J$I$r65$($F$/$@$5$k$H$"$j$,$?$$$G$9e(B.

e$B85$K$J$C$?$N$Oe(B[ruby-core:07364]e$B$G$9!#e(B