From: Simon Strandgaard Date: 2004-03-08T09:14:40+09:00 Subject: Re: proposal: class< In message "proposal: class< on 04/03/08, Simon Strandgaard writes: > > |'obj.extend' and 'class< |However there is a difference.. 'class< |invoke #extend_object, and #extended. To me it feels > |inconsistent that there is no way to execute code on the > |point when the extension occurs. > > 'obj.extend' add a module to the inheritance graph (per object base), > whereas 'class < singleton class. Virtually, singleton class always exists for each > object, never added, never extended. > I don't get this.. (thanks+sorry matz). I had the impression that they didn't differ much. Is there anyone which can explain this to me? Thanks in advance -- Simon Strandgaard