Re: [Pharo-project] [squeak-dev] #ensure: issues

2010-03-04 Thread Henrik Johansen
Den 04.03.2010 13:19, skrev Stéphane Ducasse: > btw henrik > > does VW have the same behavior? > > Stef > Short answer is no, Eliot described the details: http://n4.nabble.com/ensure-issues-was-Re-Pharo-project-Pharo-by-Example-vol-2-new-chapter-available-tp1575765p1577519.html Cheers, Henry

Re: [Pharo-project] [squeak-dev] #ensure: issues

2010-03-04 Thread Peter Hugosson-Miller
In case anybody is interested, I tried Henrik's example in VAST: | proc | proc := [[Transcript show: 'Start!'] ensure: [Transcript show: 'Finish!'. Processor yield]] newProcess. proc resume. Processor yield. proc s

Re: [Pharo-project] [squeak-dev] #ensure: issues

2010-03-04 Thread Stéphane Ducasse
btw henrik does VW have the same behavior? Stef On Mar 4, 2010, at 11:38 AM, Henrik Johansen wrote: > FWIW, this quote from the following discussion on Squeak-dev distills what I > was trying (but failing) to demonstrate: > "We shouldn't stop trying to support well-behaved ensure blocks proper

Re: [Pharo-project] [squeak-dev] #ensure: issues

2010-03-04 Thread Henrik Johansen
FWIW, this quote from the following discussion on Squeak-dev distills what I was trying (but failing) to demonstrate: "We shouldn't stop trying to support well-behaved ensure blocks properly. Because if we don't then ensure becomes entirely random. Or can anyone here explain why it would be reasona

Re: [Pharo-project] [squeak-dev] #ensure: issues (was: Re: Pharo by Example vol 2: new chapter available)

2010-03-03 Thread Stéphane Ducasse
> Transcript is just a stream. #show: is just a combination of #nextPutAll: and > #endEntry. #endEntry displays the contents of the stream and when that's done > it removes everything from the stream with #resetContents. #resetContents is > never executed, because the process is terminated bef

Re: [Pharo-project] [squeak-dev] #ensure: issues (was: Re: Pharo by Example vol 2: new chapter available)

2010-03-03 Thread Levente Uzonyi
On Tue, 2 Mar 2010, Igor Stasenko wrote: 2010/3/2 Levente Uzonyi : On Tue, 2 Mar 2010, Henrik Sperre Johansen wrote: PS. For the not-so-faint-of-heart, open a Transcript and try evaluating: |proc| proc := [[Transcript show: 'Start!'. ] ensure: [Transcript show: 'Finish!' Processor yield.]] n

Re: [Pharo-project] [squeak-dev] #ensure: issues (was: Re: Pharo by Example vol 2: new chapter available)

2010-03-03 Thread Alexandre Bergel
Thanks Levente! Cheers, Alexandre On 3 Mar 2010, at 11:33, Levente Uzonyi wrote: > On Wed, 3 Mar 2010, Stéphane Ducasse wrote: > >> >> On Mar 2, 2010, at 10:33 PM, Levente Uzonyi wrote: >> >>> On Tue, 2 Mar 2010, Henrik Sperre Johansen wrote: >>> >> PS. For the not-so-faint-of-heart, o

Re: [Pharo-project] [squeak-dev] #ensure: issues (was: Re: Pharo by Example vol 2: new chapter available)

2010-03-03 Thread Levente Uzonyi
On Wed, 3 Mar 2010, Stéphane Ducasse wrote: On Mar 2, 2010, at 10:33 PM, Levente Uzonyi wrote: On Tue, 2 Mar 2010, Henrik Sperre Johansen wrote: PS. For the not-so-faint-of-heart, open a Transcript and try evaluating: |proc| proc := [[Transcript show: 'Start!'. ] ensure: [Transcript show:

Re: [Pharo-project] [squeak-dev] #ensure: issues (was: Re: Pharo by Example vol 2: new chapter available)

2010-03-02 Thread Stéphane Ducasse
On Mar 2, 2010, at 10:33 PM, Levente Uzonyi wrote: > On Tue, 2 Mar 2010, Henrik Sperre Johansen wrote: > >> PS. For the not-so-faint-of-heart, open a Transcript and try evaluating: |proc| proc := [[Transcript show: 'Start!'. ] ensure: [Transcript show: 'Finish!' Processor yi

Re: [Pharo-project] [squeak-dev] #ensure: issues (was: Re: Pharo by Example vol 2: new chapter available)

2010-03-02 Thread Schwab,Wilhelm K
-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] [squeak-dev] #ensure: issues (was: Re: Pharo by Example vol 2: new chapter available) 2010/3/2 Levente Uzonyi : > On Tue, 2 Mar 2010, Henrik Sperre Johansen wrote: > >> >>>> PS. For the not-so-faint-of-heart, open a Trans

Re: [Pharo-project] [squeak-dev] #ensure: issues (was: Re: Pharo by Example vol 2: new chapter available)

2010-03-02 Thread Igor Stasenko
2010/3/2 Levente Uzonyi : > On Tue, 2 Mar 2010, Henrik Sperre Johansen wrote: > >> PS. For the not-so-faint-of-heart, open a Transcript and try evaluating: |proc| proc := [[Transcript show: 'Start!'. ] ensure: [Transcript show: 'Finish!' Processor yield.]] newProcess. proc