From: Matthew Kerwin Date: 2012-10-28T16:20:02+09:00 Subject: Re: Name/symbol/object type clash? What is happening here? On 28 October 2012 11:50, Ryan Davis wrote: > > On Oct 27, 2012, at 17:32 , 7stud -- wrote: > >> Bartosz DziewoƄski wrote in post #1081604: >>> Robert, please stop feeding the troll. I've received enough e-mails >>> from this idiotic thread already. >>> >>> -- Matma Rex >>> >> >> That's just pure ignorance, and I might add...a cowardly statement. > > ...says the other troll in this thread... > Hah, burn. And for the record, if anyone can show me where/how part of *any* Ruby script is "breaking away from Ruby language rules" I will laud your whatsernames. If you can write a program in spite of the interpreter and still have it work, then you're doing magic. This class may not be idiomatic, but it isn't _illegal_: class Foo def initialize n @notnum = n end def num= n @notnum = n end def num @notnum end end Ditto Struct, and Array (where's the @c_array instance variable?) and Hash (@map? @members? @..?) Struct is great for some things (like quickly defining an object that holds some named values, but not arbitrarily many) but not great for others (like overriding access to said values). Suck it up. And only use it when it's most appropriate in your script. And quit whinging. Or go write Python. (Hah, burn again!) -- Matthew Kerwin, B.Sc (CompSci) (Hons) http://matthew.kerwin.net.au/ ABN: 59-013-727-651 "You'll never find a programming language that frees you from the burden of clarifying your ideas." - xkcd