From: Stu Date: 2010-12-08T00:41:17+09:00 Subject: Re: Data structures from C to ruby http://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-c-and-c-/ It may help to understand that your script is main() ... main is essentially top level. On Mon, Dec 6, 2010 at 3:15 PM, Costas C.j wrote: > Hi. I am new to ruby and i know c and c++. i wonder if thre is something > similar to c pointers for ruby. Let me give an example. > I have an object foo with some methods, i have object foo2 with other > methods and foo3 object. I would like to give me a code example how i > can access from foo to foo3. Lets say that they are on a tree or graph >               foo >             /      \ >           foo2     foo3 > > i think the hash maybe is an option but i want something for general > purpose, example for n foos object or foo to have more than 2 children > and access from one to another. > > Sorry for my English > > Thank you for your Help > > -- > Posted via http://www.ruby-forum.com/. > >