From: Love U Ruby Date: 2013-03-20T16:36:02+09:00 Subject: Re: Confusion with has object creation. Han s Mackowiak wrote in post #1102404: > last time you used C functions to show me that i am Wrong and now you > want C code? okay you get it: No friend! I didn't challenge you, i will never do that even if I got grow up in ruby,rather I will try to convince him with the reality.:) Now I am not grown up so much in Ruby only 50% by concept, but I will try reach to 80%. As far as I know I tried to show you my confusion areas, after that I drived into the source code with your hints and solved my confusion. In this case,I am also looking into the source code,but didn't getting it as I am not getting function description of any function ruby till now,only code I got. within code to much functions are called. Those functions leading me to another confusion area, instead that if I got proper word description of each function,that could be better for me. like say a below. My func(){ add(x,y) /* this function adds to number*/ } Above kind of flavor I am not getting there. :) :) > when you do "show source" at > http://www.ruby-doc.org/core-2.0/Hash.html#method-c-5B-5D you get this: > > https://github.com/ruby/ruby/blob/trunk/hash.c#L389 > > please notice the: rb_hash_s_try_convert and rb_check_array_type > > except for this ones the Hash[] function does not call ruby methods and > only use the C representations of them, so overwriting them in ruby does > not have any form of effect -- Posted via http://www.ruby-forum.com/.