<html><head>
<style id="css_styles" type="text/css"><!--blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }
blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
a img { border: 0px; }
table { border-collapse: collapse; }
li[style='text-align: center;'], li[style='text-align: center; '], li[style='text-align: right;'], li[style='text-align: right; '] { list-style-position: inside;}
body { font-family: 'Segoe UI'; font-size: 12pt; }
.quote { margin-left: 1em; margin-right: 1em; border-left: 5px #ebebeb solid; padding-left: 0.3em; }
--></style></head>
<body><div><br /></div>
<div style="clear:both"><br /></div>
<div><br /></div>
<div>
<div>On 07-Jul-24 9:07:47 PM, "Juan Vuletich" <<a href="mailto:juan@cuis.st">juan@cuis.st</a>> wrote:</div></div><div><br /></div>
<div id="x6206a8a226b9464" style="color: rgb(0, 0, 0);"><blockquote cite="668AE783.1000608@cuis.st" type="cite" class="cite2">
On 7/7/2024 1:13 PM, Jaromir Matas via Cuis-dev wrote:
<blockquote cite="mid:em7f44cdf9-4caa-402a-984e-778b59ad847d@32ba172f.com" type="cite" class="cite">
<style type="text/css"><!--#x6206a8a226b9464 blockquote.cite
{margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right: 0px; border-left: 1px solid rgb(204, 204, 204);}
#x6206a8a226b9464 blockquote.cite2
{margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right: 0px; border-left: 1px solid rgb(204, 204, 204); margin-top: 3px; padding-top: 0px;}
#x6206a8a226b9464 a img
{border: 0px;}
#x6206a8a226b9464 table
{border-collapse: collapse;}
#x6206a8a226b9464 li#x6206a8a226b9464 [style="'text-align: center;'"], #x6206a8a226b9464 li#x6206a8a226b9464 [style="'text-align: center; '"], #x6206a8a226b9464 li#x6206a8a226b9464 [style="'text-align: right;'"], #x6206a8a226b9464 li#x6206a8a226b9464 [style="'text-align: right; '"]
{list-style-position: inside;}
#x6206a8a226b9464
{font-family: "Segoe UI"; font-size: 12pt;}
#x6206a8a226b9464 .quote
{margin-left: 1em; margin-right: 1em; border-left: 5px solid rgb(235, 235, 235); padding-left: 0.3em;}
--></style>
<div>I assume the example should go:</div>
<div><br />
</div>
<div>set := Set newFrom: #(1 2 3 4).
</div>
<div>oc := OrderedCollection new.
</div>
<div>oc setContents: set.
</div>
<div>oc</div>
<div><br />
</div>
<div>Hmm, #<span>setContents: assumes an array argument but
doesn't check... In theory
</span><span>#</span><span>setContents:</span><span> might
want to convert the supposed array argument
</span><span>anArray</span><span> to
an array by `anArray asArray`. I don't know why it doesn't
though :) Feels odd.
</span></div>
</blockquote>
<br />
It is a private method.</blockquote><div id="x6206a8a226b9464" style="color: rgb(0, 0, 0);"><br /></div>Thanks, I missed that :)</div><div id="x6206a8a226b9464" style="color: rgb(0, 0, 0);"><br /><blockquote cite="668AE783.1000608@cuis.st" type="cite" class="cite2"><br />
<br />
HTH,<br />
<br />
<blockquote cite="mid:em7f44cdf9-4caa-402a-984e-778b59ad847d@32ba172f.com" type="cite" class="cite">
<div style="clear: both;"><br />
</div>
<div><br />
</div>
<div>
<div>On 07-Jul-24 4:26:58 PM, "Mark Volkmann via Cuis-dev" <<a moz-do-not-send="true" href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>>
wrote:
</div>
</div>
<div><br />
</div>
<div id="x7379af1aeca74b2">
<blockquote cite="CAFfRWnWrsjuRSgCBuNEOtujJYxx75x+J=EsnJ-rGThaFMX+OjA@mail.gmail.com" type="cite" class="cite2">
<div dir="ltr">Selecting the following code in a Workspace and
running "Print it" results in the error "Instances of Set
are not indexable". I understand why I get that error. But
I'm wondering if I should get the error when I send the
message `setContents:` to `OrderedCollection` because it
could detect that I have set the contents to an incompatible
collection type.
<div><br />
</div>
<div><font face="monospace">set := Set newFrom: #(1 2 3 4).<br />
oc setContents: s.<br />
oc</font><br clear="all" />
<div><br />
</div>
<span class="gmail_signature_prefix">-- </span><br />
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div><font face="arial, helvetica,
 sans-serif
">R. Mark Volkmann</font></div>
<div><span style="font-size: 12.8px;"><font face="arial, helvetica, sans-serif">Object
Computing, Inc.
</font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
<br />
<br />
<pre class="moz-signature" cols="72">--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich
</pre>
</blockquote></div>
</body></html>