Implementation of EncodedStream>>contents

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

Implementation of EncodedStream>>contents

Terry Raymond

It seems that the base VW implementation of #contents is different that

the one in Wave-Server-Base.

The one in Wave-Server-Base puts the following at the beginning of the method.

                stream class == WriteStream

                                ifTrue: [

                                                | tempStream |

                                                tempStream := (stream contents withEncoding: self encoding) readStream.

                                                binary ifTrue: [tempStream binary].

                                                ^tempStream contents].

 

In some situations this is the desired behavior. Why hasn’t this been included

in the base system?

 

 

Terry

 

===========================================================

Terry Raymond

Crafted Smalltalk

80 Lazywood Ln.

Tiverton, RI  02878

(401) 624-4517      [hidden email]

===========================================================

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc