The Trunk: Kernel-cmm.835.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Kernel-cmm.835.mcz

commits-2
Chris Muller uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-cmm.835.mcz

==================== Summary ====================

Name: Kernel-cmm.835
Author: cmm
Time: 28 January 2014, 11:13:17.23 am
UUID: 9b210942-2bae-4a82-9fde-ff77af5dec9a
Ancestors: Kernel-topa.834

- Why is FileStream class>>#stderr primitive failing when asked for its #size?

=============== Diff against Kernel-topa.834 ===============

Item was changed:
  ----- Method: Error>>printVerboseOn: (in category 'printing') -----
  printVerboseOn: aStream
  aStream
+ " setToEnd ;"
- setToEnd ;
  nextPutAll: 'vvvvvvvvvvvvvvvvvv ' , self description , ' vvvvvvvvvvvvvvvvvv' ;
  cr ;
  nextPutAll: 'The time is ', DateAndTime now asString ;
  cr.
  "Allow applications to optionally print extra details without overriding a base package."
  (self respondsTo: #printDetailsOn:) ifTrue: [ self printDetailsOn: aStream ].
  aStream
  nextPutAll: self signalerContext longStack ;
  cr ;
  nextPutAll: '^^^^^^^^^^^^^^^^^^ ' , self description , ' ^^^^^^^^^^^^^^^^^^' ;
  cr!


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Kernel-cmm.835.mcz

David T. Lewis
On Tue, Jan 28, 2014 at 05:13:31PM +0000, [hidden email] wrote:

> Chris Muller uploaded a new version of Kernel to project The Trunk:
> http://source.squeak.org/trunk/Kernel-cmm.835.mcz
>
> ==================== Summary ====================
>
> Name: Kernel-cmm.835
> Author: cmm
> Time: 28 January 2014, 11:13:17.23 am
> UUID: 9b210942-2bae-4a82-9fde-ff77af5dec9a
> Ancestors: Kernel-topa.834
>
> - Why is FileStream class>>#stderr primitive failing when asked for its #size?
>

It fails because we are modeling stderr as a kind of positional stream, when in
fact it is not positionable and it does not have a size. Therefore the primitives
that attempt to do positioning on the stream will fail (as they should).

Dave


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Kernel-cmm.835.mcz

Chris Muller-3
In reply to this post by commits-2
Ah, that makes sense, thanks.

On Tue, Jan 28, 2014 at 11:13 AM,  <[hidden email]> wrote:

> Chris Muller uploaded a new version of Kernel to project The Trunk:
> http://source.squeak.org/trunk/Kernel-cmm.835.mcz
>
> ==================== Summary ====================
>
> Name: Kernel-cmm.835
> Author: cmm
> Time: 28 January 2014, 11:13:17.23 am
> UUID: 9b210942-2bae-4a82-9fde-ff77af5dec9a
> Ancestors: Kernel-topa.834
>
> - Why is FileStream class>>#stderr primitive failing when asked for its #size?
>
> =============== Diff against Kernel-topa.834 ===============
>
> Item was changed:
>   ----- Method: Error>>printVerboseOn: (in category 'printing') -----
>   printVerboseOn: aStream
>         aStream
> + "              setToEnd ;"
> -                setToEnd ;
>                  nextPutAll: 'vvvvvvvvvvvvvvvvvv ' , self description , ' vvvvvvvvvvvvvvvvvv' ;
>                  cr ;
>                  nextPutAll: 'The time is ', DateAndTime now asString ;
>                  cr.
>         "Allow applications to optionally print extra details without overriding a base package."
>         (self respondsTo: #printDetailsOn:) ifTrue: [ self printDetailsOn: aStream ].
>         aStream
>                  nextPutAll: self signalerContext longStack ;
>                  cr ;
>                  nextPutAll: '^^^^^^^^^^^^^^^^^^ ' , self description , ' ^^^^^^^^^^^^^^^^^^' ;
>                  cr!
>
>