From: sto.mar@... Date: 2012-10-29T19:19:24+09:00 Subject: Re: Name/symbol/object type clash? What is happening here? Am 28.10.2012 21:51, schrieb Igor Pirnovar: > Ryan Davis wrote in post #1081718: > >> I've already shown that the FIRST PARAGRAPH of the doco for Struct is >> pretty damn clear about this. Igor simply isn't encumbered by facts. > > Where exactly is this "doco" of yours. Ryan may allude to the official Ruby documentation... :-) In case you do not know, it can be found at http://www.ruby-doc.org or accessed via `ri': ----- $ ri Struct = Struct < Object ------------------------------------------------------------------------------ = Includes: Enumerable (from ruby site) (from ruby site) ------------------------------------------------------------------------------ A Struct is a convenient way to bundle a number of attributes together, using accessor methods, without having to write an explicit class. [...] ----- Notice the "using accessor methods" part. Nobody says that it provides @num-like instance variables which you can access directly. (And btw, as was already pointed out by others, the same is also true for Arrays, Strings, Sets, ...) If your needs are not met by the "convenient way" of Struct, and you need to do more complicated stuff, you shouldn't use it. Period. Please stop wasting our time. --