[Newbies] remove allInstances?

2016-09-23 Thread Louis LaBrunda
Hi, Tobias is right. I'm use to the VA Smalltalk one way #become: and forgot about Squeaks two way #become:, sorry about that. Lou On Fri, 23 Sep 2016 19:47:31 +0200, Tobias Pape wrote: >Hi, > >On 23.09.2016, at 15:03, Louis LaBrunda wrote: >

Re: [Newbies] remove allInstances?

2016-09-23 Thread Tobias Pape
Hi, On 23.09.2016, at 15:03, Louis LaBrunda wrote: > Hi Joseph, > > Try: > > Books allInstances do: [:b | b become: nil]. I would advise against that. Become is a sledgehammer and you're about to crush ants with it. What happens with 'a become: b' ? All

[Newbies] remove allInstances?

2016-09-23 Thread Louis LaBrunda
Hi Joseph, Try: Books allInstances do: [:b | b become: nil]. Lou On Fri, 23 Sep 2016 00:40:33 -0500, Joseph Alotta wrote: >Greetings, > >The main program I am working on now is called Books. > >If I evaluate > >Books allInstances => anOrderedCollection( aBook aBook

Re: [Newbies] remove allInstances?

2016-09-23 Thread David Corking
Joseph: I agree with Rudolf. See also http://forum.world.st/Deleting-an-instance-td3328590.html Have fun! David ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners

Aw: [Newbies] remove allInstances?

2016-09-23 Thread Rudolf Rednose
  --      Gesendet: Freitag, 23. September 2016 um 07:40 Uhr Von: "Joseph Alotta" <joseph.alo...@gmail.com> An: beginners@lists.squeakfoundation.org Betreff: [Newbies] remove allInstances? Greetings, The main program I am working on now is called Books. If I evaluate Bo

[Newbies] remove allInstances?

2016-09-22 Thread Joseph Alotta
Greetings, The main program I am working on now is called Books. If I evaluate Books allInstances => anOrderedCollection( aBook aBook aBook ) How do I set them all equal to nil like Books removeAllInstances. Books allInstances => anOrderedCollection(). Sincerely, Joseph.