From: ts Date: 2002-10-22T21:38:02+09:00 Subject: Re: "class" return value >>>>> "G" == Gavin Sinclair writes: G> The rule appears to be that a class definition returns nil unless it includes a G> mixin. Is this true, and if so, why? Well, in 1.6.7 `class' is a void expression, for example pigeon% ruby -e 'a = class A; 12; end' -e:1: void value expression pigeon% but pigeon% ruby -e 'a = eval "class A; 12; end"; p a' 12 pigeon% The class definition return the value of the last expression, `def' return nil, `include' return the class Guy Decoux