Fwd: ImageSegment incompatible with swapping classes that have instances?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fwd: ImageSegment incompatible with swapping classes that have instances?

Stéphane Ducasse


Begin forwarded message:

From: Mariano Martinez Peck <[hidden email]>
Date: August 30, 2010 12:06:36 PM GMT+02:00
To: Noury Bouraqadi <[hidden email]>
Cc: Ducasse Stéphane <[hidden email]>, Marcus Denker <[hidden email]>, Luc Fabresse <[hidden email]>
Subject: Re: ImageSegment incompatible with swapping classes that have instances?



On Mon, Aug 30, 2010 at 11:18 AM, Noury Bouraqadi <[hidden email]> wrote:
Hi,

The swapping out a class that has instances does not work. More precisely, it crashes the image when loading back.

What a hacky guy you are ;)
I discover that it fails even before...Implement this in ClassProxy:

hello
     Transcript show: 'Hello'

Then evaluate:

o := MyObject new.
o foo: 123.
p := ClassProxy new.
p become: MyObject.
o hello.

and the vm will crash and nothing in the transcript...

funny, does someone know why it doesn't work ?

Cheers

mariano
 
At least in my small example.
Evaluate the code in the ClassProxy comment.

Noury



_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project