Hi Alistair
ср, 15 мая 2019 г. в 10:11, Alistair Grant :
> Hi Denis,
>
> On Wed, 15 May 2019 at 10:16, Denis Kudriashov
> wrote:
> >
> > Hi Alistair
> >
> > I will look when have a time.
> > But you can try to write a test for bitmap serialization/materialization
> in TostSerializationTests (if
I beg your pardon.. and thank you for being the first to draw my attention to
the fact that the phrase (a common enough American colloquialism) is
actually a logical fallacy. Until now, it's been strictly idiomatic to me.
And thank you for your prompt reply.
Am I safe to assume that blocks in
On Fri, 17 May 2019 at 01:21, Brainstorms wrote:
> I beg your pardon.. and thank you for being the first to draw my attention
> to
> the fact that the phrase (a common enough American colloquialism) is
> actually a logical fallacy. Until now, it's been strictly idiomatic to me.
>
> And thank you
You got it. Thanks, Ben!
After success with Lua, now I'm thinking about how to get Pharo inserted
into the culture here...
Ben Coman wrote
> You mean like this...
>
> In System Browser...
> Object subclass: #A
> instanceVariableNames: ''
> classVariableNames: ''
> package: 'AA'
>
> A
Hello,
Im testing all my solutions with critiz and can solve almost all
problems,
Only this one I cannot figure out.
I have this code
(gifts allButLast
inject: ''
into: [ :str :each | str , each , ', ' ]) , 'and ' , gif
Maybe this is a better way to build what you want.
String streamContents: [:stream | gifts
do: [:each | stream nextPutAll: each ]
separatedBy: [ stream nextPut: $,; space ]
]
Esteban A. Maringolo
On Thu, May 16, 2019 at 4:21 PM Roelof Wobben wrote:
> Hello,
>
> Im testing all my sol
oke, and then do something like :
stream :=
String streamContents: [:stream |
gifts
do: [:each | stream nextPutAll: each ]
separatedBy: [ stream nextPut: $,; space ]
]
stream nextputAll: 'all'
stream nextPut: ','
stream nextPut: gifts last
Roelof
I think this is better
^ String streamContents: [:stream |
gifts
do: [:each | stream nextPutAll: each ]
separatedBy: [ stream nextPut: $,; space ]
stream nextputAll: 'all'; nextPut: ','; nextPut: gifts last]
Op 16-5-2019
Sorry, I misses the "all" part at the end (I don't see how that could add
something, but if it's in the requirements...)
Then it should be like this:
String streamContents: [:stream |
gifts allButLast
do: [:each | stream nextPutAll: each ]
separatedBy: [ stream nextPut: $,; space ].
st
nope, it takes also the last one and
that schould not be used.
Op 16-5-2019 om 21:51 schreef Roelof Wobben:
I think this is better
^ String streamContents: [:stream |
gifts
do: [:each | stream nextPu
and this is working
String
streamContents: [ :stream |
gifts allButLast
do: [ :each | stream nextPutAll: each ]
separatedBy: [ stream
Oh... the expected output was 'e1, e2, e3 and e4', I read "all" instead of
"and".
Now it makes sense.
Esteban A. Maringolo
On Thu, May 16, 2019 at 5:09 PM Roelof Wobben wrote:
> and this is working
>
> String
> streamContents: [ :stream |
> gifts allButLast
I made the error somehow.
Sorry for the confusion.
Roelof
Op 16-5-2019 om 22:29 schreef Esteban Maringolo:
Oh... the expected output was 'e1, e2, e3 and e4',
I read "all" instead of "and".
No
stream := WriteStream on: (String new: gifts size * "estimated size per
gift" 10).
"The number after #new: is the *initial* allocation; the stream will
reallocate it
as needed."
gifts allButLastDo: [:each |
stream nextPutAll: each; nextPutAll: ', '].
stream nextPutAll: 'and '; nextPutAll: gifts
I was trying to automate posting some values to a website (I would use Stfx.eu
but it doesn’t do syntax highlighting and only seems to work for quite small
amounts).
Anyway the following code always seems to trim values that have a ; in them -
and I’m wondering if I’m missing something - or if
Blocks in current Smalltalk system are just like lambdas in Scheme.
Pharo even has continuations (see the Continuation class).
On Fri, 17 May 2019 at 05:21, Brainstorms wrote:
> I beg your pardon.. and thank you for being the first to draw my attention
> to
> the fact that the phrase (a common
Richard O'Keefe wrote
> Blocks in current Smalltalk system are just like lambdas in Scheme.
> Pharo even has continuations (see the Continuation class).
I was going to ask about coroutines and continuations, but I thought maybe
bringing these subjects up in another thread would be more appropriate
I did not mean "course of instruction on the topic of continuations",
I meant "that class whose name is Continuation in the Smalltalk image."
In a Playground, type Continuation and then Control-B.
On Fri, 17 May 2019 at 14:03, Brainstorms wrote:
> Richard O'Keefe wrote
> > Blocks in current Sma
18 matches
Mail list logo