On Fri, 04 Apr 2003 05:37:33 +0200, Simon Strandgaard wrote:

> problem:
> Should I choose <an Array> or <a Hash> to store objects in ?
> 
> thoughts:
> PickAxe suggests that you push them on a global <array>
> 
>     VALUE objects = rb_ary_new();
>     rb_global_variable(objects);
>     rb_ary_push(objetcs, my_object);
> 
> But it seems that <Hash> is trend to be used 
> everywhere. [mod_ruby, vim, ...]
> 
> 
> This make me wonder if there is something wrong 
> with using <an Array> for this?
> 
> Have I missed something here?
> 
> what are your opinions about this?

No follow ups.. Are you with me?

Im working on a tutorial on how to embed ruby into c++.

On the section of registering/unregistering global objects,
what should I write:  Either that people should use an array 
because this is what pickaxe says. Or that they should use a 
hash because this is what [mod_ruby, vim, ruby++] uses.

problem:
Why does mod_ruby use a hash?  why not array?


--
Simon Strandgaard