From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-04-05T22:03:34+09:00 Subject: Re: [embedding] keeping track of non-exported global variables On Fri, 04 Apr 2003 05:37:33 +0200, Simon Strandgaard wrote: > problem: > Should I choose or to store objects in ? > > thoughts: > PickAxe suggests that you push them on a global > > VALUE objects = rb_ary_new(); > rb_global_variable(objects); > rb_ary_push(objetcs, my_object); > > But it seems that is trend to be used > everywhere. [mod_ruby, vim, ...] > > > This make me wonder if there is something wrong > with using 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