From: matz@... (Yukihiro Matsumoto) Date: 2004-03-09T14:48:34+09:00 Subject: Re: Thought about class definitions Hi, In message "Thought about class definitions" on 04/03/09, Dave Thomas writes: |If we allowed | | class | |Then I could write | | class Struct.new(:name, :age) | def to_s | "#{self.name} is #{self.age} years old" | end | end | |Which would be nice. I quite often extend Structs, and being able to do |it in one step seems like a tidy idea. I can't explain the semantics for normal case, for example, in class Foo