From: "David A. Black" Date: 2005-10-07T02:17:29+09:00 Subject: Re: foo= ... the only exception to the implicit-self rule ? Hi -- On Fri, 7 Oct 2005, Trans wrote: > > 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= Can you explain what you mean? I'm not getting it. David -- David A. Black dblack@wobblini.net