Issue 3406 in pharo: Standard images from downloads page do not implement Object #clone

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

Issue 3406 in pharo: Standard images from downloads page do not implement Object #clone

pharo
Status: New
Owner: ----

New issue 3406 by musicartscience: Standard images from downloads page do  
not implement Object #clone
http://code.google.com/p/pharo/issues/detail?id=3406

Hi,

I downloaded the one-click install and the Windows installer of 1.1 image  
and when I ran the "AbstractSound bachFugue play" example, I found that  
Object did not understand #clone which was fired from PluckedSound.

I fixed the problem by implementing #clone on Object with the following  
code:

clone
<primitive: 148>
self primitiveFailed

I think you need to check the default image and include this implementation  
of #clone for Object, it fixed the problem for me, but I had to download  
two images, both which didn't have it and were marked as "stable".

Cheers!


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3406 in pharo: Standard images from downloads page do not implement Object #clone

pharo
Updates:
        Status: Invalid

Comment #1 on issue 3406 by renggli: Standard images from downloads page do  
not implement Object #clone
http://code.google.com/p/pharo/issues/detail?id=3406

Use #shalloCopy, #clone has been intentionally removed (Issue 2018).


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3406 in pharo: Standard images from downloads page do not implement Object #clone

pharo

Comment #2 on issue 3406 by stephane.ducasse: Standard images from  
downloads page do not implement Object #clone
http://code.google.com/p/pharo/issues/detail?id=3406

You should update the sound package as follow:

- either use shallowCopy but better use copy (which calls shallowCopy).
then if you need something else than the shallowCopy specialize the  
postCopy method on your objects.

Clone default semantics was shallowCopy, now you can decide.


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3406 in pharo: Standard images from downloads page do not implement Object #clone

pharo
Updates:
        Cc: guillermopolito

Comment #3 on issue 3406 by marianopeck: Standard images from downloads  
page do not implement Object #clone
http://code.google.com/p/pharo/issues/detail?id=3406

We need to update this for the Pharo 1.2 dev I guess.


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3406 in pharo: Standard images from downloads page do not implement Object #clone

pharo

Comment #4 on issue 3406 by rydier: Standard images from downloads page do  
not implement Object #clone
http://code.google.com/p/pharo/issues/detail?id=3406

The most up-to-date sound package is probably in
http://www.squeaksource.com/PharoSound

It works in 1.1 at the moment, amongst other things, he clone issue is  
already resolved there.
Some relocated Preferences needs to be resolved for 1.2 though.


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3406 in pharo: Standard images from downloads page do not implement Object #clone

pharo

Comment #5 on issue 3406 by rydier: Standard images from downloads page do  
not implement Object #clone
http://code.google.com/p/pharo/issues/detail?id=3406

It's resolved there exactly as steph describes btw.


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3406 in pharo: Standard images from downloads page do not implement Object #clone

pharo

Comment #6 on issue 3406 by rydier: Standard images from downloads page do  
not implement Object #clone
http://code.google.com/p/pharo/issues/detail?id=3406

It's resolved there exactly as steph describes btw.