From: Wladimir Mutel Date: 2002-04-14T23:20:46+09:00 Subject: Re: statements & expressions( was RE: not vs !, and vs && ) � ������ <200204140857.g3E8vq529855@moulon.inra.fr> ts �������(�): >>>>>> "j" == writes: > >j> Is the set of void expressions still the same as it was when that message >j> was posted? > > no, with 1.7.2 > > pigeon% ruby -e 'p class A; self end' > A > pigeon% ruby 1.6.7 , irb 0.7.4 : irb(main):001:0> class Z ; self ; end Z irb(main):002:0> ( class Z ; self ; end ) Z irb(main):003:0> p = ( class Z ; self ; end ) SyntaxError: compile error (irb):3: void value expression (irb):3: void value expression from (irb):3 irb(main):004:0> Why it does not assign p to be Z in line 3 ? p = Z works.