From: Trans Date: 2005-10-07T01:11:48+09:00 Subject: Re: foo= ... the only exception to the implicit-self rule ? Yukihiro Matsumoto wrote: > Hi, > > In message "Re: foo= ... the only exception to the implicit-self rule ?" > on Thu, 6 Oct 2005 13:16:49 +0900, "itsme213" writes: > > |I know that otherwise one would somehow have to indicate local variables. > |Was this the main reason for this choice? > > Yes. I'm not sure local precedence is worth it though. Consider: require 'yaml' eqmeths = [] ObjectSpace.each_object{|o| s = o.methods.select{ |m| m.to_s =~ /=$/ } eqmeths |= s } y eqmeths --- - "[]=" - "==" - "===" - ">=" - "<=" - ui= - debug= - sync= - lineno= - pos= - default= - ssl_available= - uid= - euid= - gid= - egid= - groups= - maxgroups= - abort_on_exception= - priority= - critical= - families= - private_types= - anchors= - bufsize= - version= - verify_data= - only_signed= - verify_signer= - verify_chain= - verify_root= - only_trusted= T.