[#61822] Plan Developers Meeting Japan April 2014 — Zachary Scott <e@...>

I would like to request developers meeting around April 17 or 18 in this mo=

14 messages 2014/04/03
[#61825] Re: Plan Developers Meeting Japan April 2014 — Urabe Shyouhei <shyouhei@...> 2014/04/03

It's good if we have a meeting then.

[#61826] Re: Plan Developers Meeting Japan April 2014 — Zachary Scott <e@...> 2014/04/03

Regarding openssl issues, I=E2=80=99ve discussed possible meeting time with=

[#61833] Re: Plan Developers Meeting Japan April 2014 — Martin Bo煬et <martin.bosslet@...> 2014/04/03

Hi,

[ruby-core:62024] Question about Ruby Arrays

From: Mohamed Dokmak <mdokmak92@...>
Date: 2014-04-14 17:06:39 UTC
List: ruby-core #62024
Hi,=0A=0AI'm trying to implement a functionality that hooks on array modifi=
cations "by reference" but I find it complicated to implement such hook.=0A=
=0AEx :=A0=0A=0Aarr =3D [12 , "hello" ]=0A=0Aarr.reverse!=0Aarr.reverse=0A=
=0A=0AThe first one will reverse the array by reference "same VALUE" withou=
t creating a new object but just modifying its value by its reference " sam=
e as opt_aset YARV instruction ".=0A=0AThe second will create a new array i=
nstance and return a different reference "VALUE" holding the change.=0A=0AI=
s there another way that could help me implement such a hook ? possibly a m=
ethod I haven't discovered yet ? I've looked at rb_ary_modify_check but it'=
s much related to shared arrays.=0A=0AI need ideas on implementing a hook t=
hat enables me to know when Ruby uses a method dispatch such as arr.reverse=
! and return the same reference to the object ?=0A=0A--=0AMohamed Dokmak

In This Thread

Prev Next