<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 2012-12-30 8:52 AM, Colin Putney
wrote:<br>
</div>
<blockquote
cite="mid:CAD+=c1j3a2VuZ7eyhAA_-Kb8kead2k-TmvcT=cvP-e6fOdOunA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sat, Dec 29, 2012 at 12:30 PM,
Chris Cunnington <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:smalltalktelevision@gmail.com"
target="_blank">smalltalktelevision@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>I think I'm missing a simpler way. Especially with
Xtreams. Shouldn't I just use a filter, change the
#contentSpecies, or something?<br>
</div>
</blockquote>
</div>
<br>
</div>
<div class="gmail_extra">Yeah, writing into an OrderedCollection
with a stream is a bit suspect to begin with. Both provide a
way to grow an underlying fix-size collection as you add more
elements. If you have an OrderedCollection, you can just send
#add:, no need for a write stream. If you want to build a
string, "String new writing" will do the job, no need for an
OrderedCollection. </div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra" style="">Also, you can write an OC full
of characters directly into a write stream on a string:</div>
<div class="gmail_extra" style=""><br>
</div>
<div class="gmail_extra" style="">
<div class="gmail_extra">chars := 'abc' asOrderedCollection.</div>
<div class="gmail_extra">String new writing </div>
<div class="gmail_extra"><span class=""
style="white-space:pre"> </span>write: '123';</div>
<div class="gmail_extra"><span class=""
style="white-space:pre"> </span>write: chars; </div>
<div class="gmail_extra"><span class=""
style="white-space:pre"> </span>conclusion</div>
</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra" style="">Colin</div>
</div>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
Martin also made it look easier with a write than a read. I think I
was looking at it the wrong way around. The OC shouldn't be the
receiver but the argument. #writing into a String instead of
#reading an OC.<br>
<br>
Thanks,<br>
Chris <br>
</body>
</html>