Bug Involving Modified #to:by:do:

R. A. Harmon harmonra at webname.com
Sat Jan 30 12:32:23 UTC 1999


I modified Number 'intervals' #to:by:do: method by adding at the beginning:

	step = 0 ifTrue: [
		^self error: 'step must be non-zero.'
	].


then evaluated:

	5 to: 1 by: 0 do: [ :n | ^#bogus].

it returns bogus.

I don't know what is going wrong where.  I suspect some of those blue collar
boys in the bowels of Squeak are taking an extra long coffee break or day
dreaming.

--
Richard A. Harmon          "The only good zombie is a dead zombie"
harmonra at webname.com           E. G. McCarthy





More information about the Squeak-dev mailing list