[fix] TextStream

Niko Schwarz niko.schwarz at gmx.net
Sun Jan 5 16:33:32 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It seems like there jumped an obsolete "string" into the nextPutAll: method of 
TextStream. Commenting it out gets it to work again.

(umm.. im by no means experienced squeaker, maybe you should test this before 
believing me)

My test:
|w|
w _ TextStream on: ''.
w nextPutAll: 'hola'. w nextPutAll: ' chica'.
w contents

regards,

nick
- -- 
Computer programmers do it byte by byte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+GF5g3P3nmXTVnC8RAq0eAJ0WogLm4hz5Ja4ki6b2ufjwwQNGEACg1m7J
5krmoEHmmsLnbenFTWkk4hM=
=l60u
-----END PGP SIGNATURE-----
-------------- next part --------------
'From Squeak3.4alpha of ''11 November 2002'' [latest update: #5125] on 5 January 2003 at 5:25:55 pm'!

!TextStream methodsFor: 'as yet unclassified' stamp: 'NES 1/5/2003 17:23'!
nextPutAll: aCollection 
	"Optimized access to get around Text at:Put: overhead"
	| n |
	n _ aCollection size.
	((aCollection isMemberOf: String) not
			or: [position + n > writeLimit])
		ifTrue: [^ super nextPutAll: aCollection].
	collection "string"
		replaceFrom: position + 1
		to: position + n
		with: aCollection
		startingAt: 1.
	position _ position + n!
]style[(12 11 3 54 3 2 4 1 3 11 10 11 13 6 14 8 3 1 3 10 16 5 13 11 4 10 25 8 3 1 7 8 3 1 9 11 15 1 3 8 3 8 3 1)f1b,f1cblue;b,f1,f1c152050000,f1,f1cblue;i,f1,f1cblue;i,f1,f1cblue;i,f1,f1cblue;i,f1,f1cmagenta;,f1,f1cmagenta;,f1,f1cblue;i,f1,f1cmagenta;,f1,f1cmagenta;,f1,f1cblue;i,f1,f1cmagenta;,f1,f1cmagenta;,f1,f1c202202126,f1,f1cmagenta;,f1,f1cblue;i,f1,f1cblue;i,f1,f1c202202126,f1,f1cmagenta;,f1,f1cmagenta;,f1,f1cblue;i! !



More information about the Squeak-dev mailing list