Transcript contents is empty?
nicolas cellier
ncellier at ifrance.com
Fri Oct 19 21:17:46 UTC 2007
Bert Freudenberg a écrit :
>> From: johnmci at smalltalkconsulting.com
>> Date: Fri, 19 Oct 2007 21:26:16
>> To:squeak-dev at lists.squeakfoundation.org, frank.urbach at schmees.com
>> Subject: Transcript contents is empty?
>>
>> In Sophie I was going to grab the contents of the Transcript and
>> write that to our error server.
>> However I find that
>>
>> Transcript show: 'foo'.
>> Transcript contents size = 0 ifTrue: [self halt].
>>
>> Obviously I would have *thought* that asking for Transcript contents
>> would have returned what is on the Transcript.
>> But it doesn't.
>>
>> So I'm wondering if this is a bug or feature?
>
> Feature. You need to add a dependent to Transcript and log stuff on
> "updated: #appendEntry" sends (IIRC).
>
> - Bert -
>
>
>
>
Exactly, because Squeak Transcript is the stream of not yet appened text...
It is not the real text collector, just an intermediate...
Not a valuable object per se...
I guess john idea of Transcript is exactly the VW Transcript (a
TextCollector).
More information about the Squeak-dev
mailing list
|