Begin forwarded message:
> From: [email protected] > Date: August 22, 2009 5:25:58 PM CEDT > To: [email protected] > Subject: [squeak-dev] The Trunk: Kernel-bf.225.mcz > Reply-To: [email protected] > > Bert Freudenberg uploaded a new version of Kernel to project The > Trunk: > http://source.squeak.org/trunk/Kernel-bf.225.mcz > > ==================== Summary ==================== > > Name: Kernel-bf.225 > Author: bf > Time: 22 August 2009, 5:25:40 am > UUID: f47aa5b7-b450-4ed2-8237-26841337ce18 > Ancestors: Kernel-ar.217 > > Clarify the meaning of #asOop in Squeak. > > =============== Diff against Kernel-ar.217 =============== > > Item was changed: > ----- Method: Object>>asOop (in category 'system primitives') ----- > asOop > + "This method is for compatibility only. > + In Smalltalk, this used to return an integer unique to each object. > + In Squeak, OOPs are internal to the VM. Accessing an OOP would > be useless anyway since it changes when the object is moved during > garbage collection." > - "Primitive. Answer a SmallInteger whose value is half of the > receiver's > - object pointer (interpreting object pointers as 16-bit signed > quantities). > - Fail if the receiver is a SmallInteger. Essential. See Object > documentation > - whatIsAPrimitive." > > + ^self identityHash! > - <primitive: 75> > - self primitiveFailed! > > Item was removed: > - ----- Method: SmallInteger>>asOop (in category 'system > primitives') ----- > - asOop > - "Answer an object pointer as an integer, return negative number > for SmallInteger" > - > - ^ self! > > _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
