Re: [Newbies] Problems with do:

2006-09-17 Thread Mathieu
Ralph Johnson a écrit : > On 9/17/06, stéphane ducasse <[EMAIL PROTECTED]> wrote: >> hi ralph >> >> why in your pattern you have block around Stream classes ? >> >> Stef > > It was a mistake. It was supposed to be a hyperlink, and [] are the > hyperlink delimiters on WikiWorks, but the code was i

Re: [Newbies] Problems with do:

2006-09-17 Thread stephane ducasse
this is what I thought but I did not dare changing the code :) ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners

Re: [Newbies] Problems with do:

2006-09-17 Thread Ralph Johnson
On 9/17/06, stéphane ducasse <[EMAIL PROTECTED]> wrote: hi ralph why in your pattern you have block around Stream classes ? Stef It was a mistake. It was supposed to be a hyperlink, and [] are the hyperlink delimiters on WikiWorks, but the code was inside a /pre tag, so hyperlinks don't work

Re: [Newbies] Problems with do:

2006-09-17 Thread stéphane ducasse
hi ralph why in your pattern you have block around Stream classes ? Stef On 17 sept. 06, at 01:28, Ralph Johnson wrote: You could do something like [aFileStream atEnd] whileFalse: [line := aFileStream nextLine. Transcipt show: line: cr.] Alternatively, you could convert your stream of charac

Re: [Newbies] Problems with do:

2006-09-17 Thread stephane ducasse
this is free mathieu. This is a pattern. Use it :) stef On 17 sept. 06, at 19:51, Mathieu wrote: Ralph Johnson a écrit : You could do something like [aFileStream atEnd] whileFalse: [line := aFileStream nextLine. Transcipt show: line: cr.] Alternatively, you could convert your stream of chara

Re: [Newbies] Problems with do:

2006-09-17 Thread Mathieu
Ralph Johnson a écrit : > You could do something like > [aFileStream atEnd] whileFalse: [line := aFileStream nextLine. > Transcipt show: line: cr.] > > Alternatively, you could convert your stream of characters into a > stream of lines. I described something similar in > http://wiki.cs.uiuc.edu/P

[Newbies] Problems with do:

2006-09-16 Thread Peace Jerome
Hi andy Well back to front it would be [ :line | Transcript show: line; cr.] value: aFileStream nextLine . which should do what you want. Yours in service, -- Jeorme Peace >[Newbies] Problems with do: >andy.burnett at knowinnovation.com andy.burnett at knowinnovation.com >Sat Sep

Re: [Newbies] Problems with do:

2006-09-16 Thread Ralph Johnson
You could do something like [aFileStream atEnd] whileFalse: [line := aFileStream nextLine. Transcipt show: line: cr.] Alternatively, you could convert your stream of characters into a stream of lines. I described something similar in http://wiki.cs.uiuc.edu/PatternStories/FunWithStreams but it c

[Newbies] Problems with do:

2006-09-16 Thread andy . burnett
I need someone to poke me with a clue stick please! I am trying to step through a file a line at a time. I had the idea that this should work aFileStream nextLine do: [ :line| Transcript show: line; cr.]. Unfortunately (as will be obvious to everyone) what it actually does is print a characte