Proposal for enhancing Transcript show:

Stephan Rudlof sr at evolgo.de
Sat Feb 12 20:26:56 UTC 2000


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?

What about (existing)
	Transcript print: anObject
?

Stephan

> 
> '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.

-- 
Stephan Rudlof (sr at evolgo.de)
   "Genius doesn't work on an assembly line basis.
    You can't simply say, 'Today I will be brilliant.'"
    -- Kirk, "The Ultimate Computer", stardate 4731.3





More information about the Squeak-dev mailing list