[squeak-dev] A candidate for the "weirdest bug ever" award
Benoit St-Jean
bstjean at yahoo.com
Wed Feb 24 00:39:53 UTC 2016
If that's of any hint/help, I get the exact same thing on latest Pharo/Spur on Windows. -----------------
Benoît St-Jean
Yahoo! Messenger: bstjean
Twitter: @BenLeChialeux
Pinterest: benoitstjean
IRC: lamneth
Blogue: endormitoire.wordpress.com
"A standpoint is an intellectual horizon of radius zero". (A. Einstein)
From: Stéphane Rollandin <lecteur at zogotounga.net>
To: liste <liste@>
Sent: Tuesday, February 23, 2016 5:21 PM
Subject: [squeak-dev] A candidate for the "weirdest bug ever" award
I have a nice one:
In (seemingly) any 5.0 image, with the latest Spur, type the following
in a workspace and printIt a couple of time:
(1 to: 3) collect: [:i |
m := ''.
2 timesRepeat: [m := m, ('1234' perform: #copyFrom:to: with: 2 with: 4)].
m]
I get kind of randomly either #('234' '' '') or the correct #('234234'
'234234' '234234'), or at times #('234234' '' '').
Attached is the same code, this time in a method. It is even funkier,
since a common answer is then 'copyFrom:to:234', although I sometimes
get '234234' ...
Stef
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20160224/8250dd5b/attachment.htm
More information about the Squeak-dev
mailing list
|