<div dir="ltr">Hi,<br><div> I always had the idea that #species were only for collections as Juan says, that it was defined to solve the problem it solves in the collection hierarchy... it is odd to mee to see it defined in Object...</div><div> It looks to me that it is those kind of indirections that you only use it when it is needed.</div><div><br></div><div> My two cents :-)</div><div><br></div><div> Bye!</div><div> Hernan.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 3, 2019 at 8:25 AM Juan Vuletich via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div bgcolor="#ffffff">
Hi Phil,<br>
<br>
species<br>
"Answer the preferred class for reconstructing the receiver. For
example, <br>
collections create new collections whenever enumeration messages
such as <br>
collect: or select: are invoked. The new kind of collection is
determined by <br>
the species of the original collection. Species and class are
not always the <br>
same. For example, the species of Interval is Array."<br>
<br>
On 10/2/2019 10:32 PM, Phil B wrote:
<blockquote type="cite">
<div dir="ltr">...
<div class="gmail_quote">
<div><br>
</div>
<div>Fair point: the first line in the comment and the last
seem contradictory. So which one wins? (The 'species and
class are not always the same' part is consistent with the
first line, the particular example that follows doesn't seem
to be)</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#ffffff"> So it seems that #species tries to
be too many different things at once...<br>
</div>
</blockquote>
<div><br>
</div>
<div>I would agree with that. That's why I'm pressing the
issue... I'd like us to at least agree what it means in Cuis
and use it consistently. Having it mean X except when it
doesn't isn't terribly useful. Having it mean X, Y or Z
(which are mutually exclusive) is even worse.</div>
</div>
</div>
</blockquote>
<br>
I agree. That very comment is already contradictory. As this very
thread shows, different people have understood it differently. And
given that this message seems to be quite old, it might be present
in other dialects (Squeak derived or not), and in ANSI Smalltalk.
I'm not sure there's much we can do, besides trying not to break too
much code...<br>
<pre cols="72">--
Juan Vuletich
<a href="http://www.cuis-smalltalk.org" target="_blank">www.cuis-smalltalk.org</a>
<a href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev" target="_blank">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a href="https://github.com/jvuletich" target="_blank">https://github.com/jvuletich</a>
<a href="https://www.linkedin.com/in/juan-vuletich-75611b3" target="_blank">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich</pre>
</div>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span><span style="font-size:small"><font size="2"><span style="font-weight:normal"><span style="font-weight:bold">Hernán Wilkinson</span><br>Agile Software Development, Teaching & Coaching</span></font></span></span></span></strong></span></div><div><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span><span style="font-size:small"><font size="2"><span style="font-weight:normal">Phone: +54-011</span></font></span></span></span></strong></span><font face="tahoma, sans-serif" size="2">-4893-2057</font></div><div><strong style="font-family:tahoma,sans-serif;font-size:xx-small"><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">Twitter: @HernanWilkinson</span></font></span></span></strong></div><div><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span><span style="font-size:small"><font size="2"><span style="font-weight:normal">site: <a href="http://www.10pines.com/" style="color:rgb(17,65,112)" target="_blank">http://www.10Pines.com</a></span></font></span></span></span></strong></span></div><div><font face="tahoma, sans-serif"><span style="border-collapse:collapse">Address: Alem 896</span></font>, Floor 6, Buenos Aires, Argentina</div></div></div></div></div></div></div></div></div></div></div></div>