[Cuis-dev] OrderedCollection and setContents:

Mark Volkmann r.mark.volkmann at gmail.com
Sun Jul 7 07:26:58 PDT 2024


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.

set :=  Set newFrom: #(1 2 3 4).
oc setContents: s.
oc

-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240707/56092f4a/attachment.htm>


More information about the Cuis-dev mailing list