Proposal for enhancing Transcript show:

Stefan Matthias Aust sma at 3plus4.de
Sat Feb 12 12:15:52 UTC 2000


I always wondered why Transcript show: only accepts strings as arguments.
As this is a debug facility, it would be IMHO handy to show any kind of
objects without converting it to a String (using asString or printString).
Therefore, I'd like to see this change added to the base system.

What do you think?


'From Squeak2.8alpha of 18 January 2000 [latest update: #1851] on 11
February 2000 at 4:12:42 pm'!

!TranscriptStream methodsFor: 'stream extensions' stamp: 'sma 2/11/2000
15:31'!
show: s  "TextCollector compatibility"
	self nextPutAll: ((s isKindOf: String) ifTrue: [s] ifFalse: [s asString]);
endEntry ! !


!Transcripter methodsFor: 'all' stamp: 'sma 2/11/2000 15:30'!
show: s
	self nextPutAll: ((s isKindOf: String) ifTrue: [s] ifFalse: [s asString]);
endEntry! !

bye
--
Stefan Matthias Aust  //  Bevor wir fallen, fallen wir lieber auf.





More information about the Squeak-dev mailing list