From: Rene Tschirley Date: 2003-04-25T00:30:46+09:00 Subject: Re: How to call an object instance's method? Robert Klemme wrote: > @aList = @aList + Array.new(1, A) > > You add an array containing the class instance of A not an instance of > A. Oh, shit. I knew, it would be something really stupid. :-) > @aList << A.new Ok, that will be my favorite. > Yes, the brackets in the line above are parsed as function invocation > brackets of "puts": Hmm, the book told me to understand that ruby's association somewhat difficult and to use parentheses if needed. Should better give examples and explain the parsing. On the other hand, it looks quite similar to functional programming. *sigh* Thanks, you're great! Bye, Rene -- Dipl.-Inform. Ren� Tschirley http://www.cs.tu-berlin.de/~pooh TU Berlin, Computer Graphics and Computer Assisted Medicine research group