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

I would like to request developers meeting around April 17 or 18 in this month.

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’ve discussed possible meeting time with Martin last month and he seemed positive.

[#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,

I'm trying to implement a functionality that hooks on array modifications "by reference" but I find it complicated to implement such hook.

Ex :
arr = [12 , "hello" ]

arr.reverse!
arr.reverse


The first one will reverse the array by reference "same VALUE" without creating a new object but just modifying its value by its reference " same as opt_aset YARV instruction ".

The second will create a new array instance and return a different reference "VALUE" holding the change.

Is there another way that could help me implement such a hook ? possibly a method I haven't discovered yet ? I've looked at rb_ary_modify_check but it's much related to shared arrays.

I need ideas on implementing a hook that enables me to know when Ruby uses a method dispatch such as arr.reverse! and return the same reference to the object ?

--
Mohamed Dokmak

In This Thread

Prev Next