{Spam?} Re: {Spam?} Data conversion using
#primitiveChangeClassTo: with GOODS
Yar Hwee Boon
hboon at motionobj.com
Wed Dec 1 02:23:13 UTC 2004
On Sun, 28 Nov 2004 19:03:02 +0800, Yar Hwee Boon <hboon at motionobj.com>
wrote:
> ======
> x := (db root at:#xxx).
> x list do: [:e | e become: (BBSubclass basicNew copyFrom: e)].
> "x inspect"
> db commit.
> ======
OK. Just for the record, if anyone ever needs to do this, this works.
Thanks Avi.
=====
x list do: [:e | e primitiveChangeClassTo: BBSubclass new. x writeBarrier
add: e yourself; modified: e yourself].
=====i
--
Regards
HweeBoon
MotionObj
More information about the Squeak-dev
mailing list
|