Proposal for enhancing Transcript show:
Steven Elkins
sgelkins at nortelnetworks.com
Sat Feb 12 20:31:43 UTC 2000
Recently Sam Adams mentioned an old idea of Lynn Fogwell's that you
might like better. As I recall it, Object had a #print method that
looked like...
Transcript cr; show: self printString
Stefan Matthias Aust wrote:
>
> 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
|