BasicObject#object_id

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

$B:G6a(B, BasicObject$B$r;H$C$F$$$k$s$G$9$,(B,
BasicObject#object_id/id $B$,(B
$B$"$j$^$;$s(B.

BasicObject$B$N%$%s%9%?%s%9$H$$$($I$b(B,
$B%*%V%8%’%/%H(B($B$H$$$&$+%$%s%9%?%s%9(B)
$B$J$N$G(B, object_id $B$O$"$C$?J}$,K>$^$7$$$H;W$&$N$G$9$,(B?

$BFC$KLdBj$K$J$C$F$$$k$N$,(B, $B$3$l$,$J$$$H(B,
finalizer$B$G$NBP1~$,$G$-$J$$$3(B
$B$H$G$9(B.

$BDI2C$r8!F$$7$F$b$i$($^$;$s$G$7$g$&$+!)(B

__
---------------------------------------------------->> [email protected](B $B7=<y(B
<<—
---------------------------------->> e-mail: [email protected] <<—

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

In message “Re: [ruby-dev:42778] BasicObject#object_id”
on Thu, 16 Dec 2010 20:11:53 +0900, [email protected] (Keiju
ISHITSUKA) writes:

|$B:G6a(B, BasicObject$B$r;H$C$F$$$k$s$G$9$,(B, BasicObject#object_id/id
$B$,(B
|$B$"$j$^$;$s(B.
|
|BasicObject$B$N%$%s%9%?%s%9$H$$$($I$b(B,
$B%*%V%8%’%/%H(B($B$H$$$&$+%$%s%9%?%s%9(B)
|$B$J$N$G(B, object_id $B$O$"$C$?J}$,K>$^$7$$$H;W$&$N$G$9$,(B?
|
|$BFC$KLdBj$K$J$C$F$$$k$N$,(B, $B$3$l$,$J$$$H(B, finalizer$B$G$NBP1~$,$G$-$J$$$3(B
|$B$H$G$9(B.
|
|$BDI2C$r8!F$$7$F$b$i$($^$;$s$G$7$g$&$+!)(B

$B6D$k$3$H$O$b$C$H$b$J$N$G8!F$$7$^$9!#[email protected]!"$"$s$^$j(B
BasicObject$B$N%a%=%C%I$rA}$d$7$?$/$J$$$N$GG:$^$7$$$H$3$m$G$9!#(B
$B$I$3$+$K4X?tE*%$%s%?%U%’!<%9$rMQ0U$9$k$+!#$&!<$`!#(B

[email protected]>;3OB9-$G$9!#(B

At Fri, 17 Dec 2010 00:44:08 +0900,
[email protected]=<y(B wrote:

$B$I$3$+$K4X?tE*%$%s%?%U%’!<%9$rMQ0U$9$k$+!#$&!<$`!#(B

$B$=$l$G$b$h$$$G$9(B.

ObjectSpace.id(obj)
ObjectSpace.id_of(obj)
ObjectSpace.object_id(obj)
ObjectSpace.object_id_of(obj)

$B$H$+(B?

drb $B$K$O(B
DRb::DRbIdConv#to_id(obj)
$B$H$$$&$N$,$"$k$h$&$G$9!#(B

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

In [ruby-dev:42779] the message: “[ruby-dev:42779] Re:
BasicObject#object_id”, on Dec/16 23:18(JST) Yukihiro M.
writes:

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

|BasicObject$B$N%$%s%9%?%s%9$H$$$($I$b(B,
$B%*%V%8%’%/%H(B($B$H$$$&$+%$%s%9%?%s%9(B)
|$B$J$N$G(B, object_id $B$O$"$C$?J}$,K>$^$7$$$H;W$&$N$G$9$,(B?
|$BFC$KLdBj$K$J$C$F$$$k$N$,(B, $B$3$l$,$J$$$H(B,
finalizer$B$G$NBP1~$,$G$-$J$$$3(B
|$B$H$G$9(B.

$B6D$k$3$H$O$b$C$H$b$J$N$G8!F$$7$^$9!#(B

$B$*!<(B. $B$h$+$C$?(B.

[email protected]!"$"$s$^$j(BBasicObject$B$N%a%=%C%I$rA}$d$7$?$/$J$$$N$GG:$^$7$$$H$3$m(B
$B$G$9!#(B

$B$&!<$`(B.

object_id $B$C$F(B, $B0lHL$K$O$"$^$j;H$o$l$J$/$F(B,
$BFC<l$JMQES$K$7$+;H$o$l$J$$(B
$B$H;W$$$^$9$,(B, [email protected]$H5U$K$h$/;H$o$l$k5$$,$7$^$9(B.

$B$I$3$+$K4X?tE*%$%s%?%U%’!<%9$rMQ0U$9$k$+!#$&!<$`!#(B

$B$=$l$G$b$h$$$G$9(B.

ObjectSpace.id(obj)
ObjectSpace.id_of(obj)
ObjectSpace.object_id(obj)
ObjectSpace.object_id_of(obj)

$B$H$+(B?

__
---------------------------------------------------->> [email protected](B $B7=<y(B
<<—
---------------------------------->> e-mail: [email protected] <<—

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

In [ruby-dev:42781] the message: “[ruby-dev:42781] Re:
BasicObject#object_id”, on Dec/17 00:44(JST) [email protected]=<y(B writes:

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

|BasicObject$B$N%$%s%9%?%s%9$H$$$($I$b(B,
$B%*%V%8%’%/%H(B($B$H$$$&$+%$%s%9%?%s%9(B)

|$B$J$N$G(B, object_id $B$O$"$C$?J}$,K>$^$7$$$H;W$&$N$G$9$,(B?
|$BFC$KLdBj$K$J$C$F$$$k$N$,(B, $B$3$l$,$J$$$H(B,
finalizer$B$G$NBP1~$,$G$-$J$$$3(B

|$B$H$G$9(B.

$B6D$k$3$H$O$b$C$H$b$J$N$G8!F$$7$^$9!#(B

[email protected]!"$"$s$^$j(BBasicObject$B$N%a%=%C%I$rA}$d$7$?$/$J$$$N$GG:$^$7$$$H$3$m(B
$B$G$9!#(B

$B7k6I(B, BasicObject#id, object_id $B$H$7$FF~$C$?$_$?$$$G$9$M(B.

$B$H$3$m$G(B, $B$3$l$C$F(B, finalizer$B$N7o$b$"$k$7(B,
$B$+$J$j(B($B%$%s%?!<%U%’!<%9>e$N(B)
$B%P%0$K6a$$$N$G$O$J$$$+$H9M$($k$N$G$9$,(B,
ruby-1.9.2$B7O$KF~$k$3$H$O$J$$$N(B
$B$G$7$g$&$+(B?

__
---------------------------------------------------->> [email protected](B $B7=<y(B
<<—
---------------------------------->> e-mail: [email protected] <<—

(2010/12/17 0:44), [email protected]=<y(B wrote:

ObjectSpace.object_id_of(obj)

$B!!8D?ME*$K$O$3$l$,9%$-$J$s$G$9$,!$$I$s$J$b$s$G$7$g$&!%(B

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

In message “Re: [ruby-dev:42840] Re: BasicObject#object_id”
on Tue, 21 Dec 2010 18:25:27 +0900, Yugui [email protected] writes:

|$B$H$3$m$G!"(BBasicObject$B$N%a%=%C%I$O>/$J$1$l$P>/$J$$$[$I$h$$$H;W$$$^$9$,!"(B"$BDL>o;H$&$[$&(B"$B$G$"$k(B#object_id$B$O:o=|$7$^$;$s$+(B?
|send,
send$B$H$NN`?d$G(Bobject_id$B$N$[$&$O(BBasicObject$B$N;R$,(Bmethod_missing$B$rJa$i$($F:[email protected]$,$"$k$,(B__id__$B$N$[$&$O$b$H$NDj5A$N$^$^$G$"$k$H$$$&;EAH$_$N$[$&$,$7$C$/$j$-$^$9!#(B

$B$J$k$[$I!#(B__send__$B$H$NN`?d$H$$$&[email protected]@NO$,$"$j$^$7$?$N$G!"(B
$B$=$NMM$K$7$h$&$H;W$$$^$9!#(B

2010/12/20 [email protected]=<y(B [email protected]:

$B7k6I(B, BasicObject#id, object_id $B$H$7$FF~$C$?$_$?$$$G$9$M(B.

$B$H$3$m$G(B, $B$3$l$C$F(B, finalizer$B$N7o$b$"$k$7(B,
$B$+$J$j(B($B%$%s%?!<%U%’!<%9>e$N(B)
$B%P%0$K6a$$$N$G$O$J$$$+$H9M$($k$N$G$9$,(B, ruby-1.9.2$B7O$KF~$k$3$H$O$J$$$N(B
$B$G$7$g$&$+(B?

$BFC$KF~$l$k$3$H$O9M$($F$$$^$;$s!#;EMM$N%_%9$r(Bpatch
[email protected]$9$k$3$H$K$O?5=E$G$"$j$?$$$G$9!#(B

$B$H$3$m$G!"(BBasicObject$B$N%a%=%C%I$O>/$J$1$l$P>/$J$$$[$I$h$$$H;W$$$^$9$,!"(B"$BDL>o;H$&$[$&(B"$B$G$"$k(B#object_id$B$O:o=|$7$^$;$s$+(B?
send,
send$B$H$NN`?d$G(Bobject_id$B$N$[$&$O(BBasicObject$B$N;R$,(Bmethod_missing$B$rJa$i$($F:[email protected]$,$"$k$,(B__id__$B$N$[$&$O$b$H$NDj5A$N$^$^$G$"$k$H$$$&;EAH$_$N$[$&$,$7$C$/$j$-$^$9!#(B