<div dir="ltr">A few comments:<div>1) super pvt* it is not allowed because "private" parts of a class are only visible to its instances, at least that it is how c++/java and the like treat private stuff (methods, vars, etc). So in Java you can not do super.prvt*(). </div><div>The behavior you are proposing Phil would be like "protected" in those languages. In fact, we could say that inst. vars. in Smalltalk are protected in the c++/java parlance.</div><div>So, my guess is that the current restriction on super pvt* came from that understanding "private".</div><div>Having said that, I see no problem to change that restriction and treat pvt* messages as they were protected although it will be confusing to explain when compared to other languages. I think it would be better in that case to have prt* (protected) instead of pvt* but that would generate a migration problem...</div><div>2) About treating methods in private categories as private methods, I think it is not a good idea because the category of a method can change from a "public" category to a "private" one and valid message send would become invalid which is impossible to check in a dynamic env. as Smalltalk. Using pvt in the beginning of the message name solves that problem. (BTW, this made me realize that the rename message does not handle this situation correctly, I mean when renaming a public to a private selector).</div><div><br></div><div>Cheers</div><div>Hernan.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 11, 2019 at 3:05 AM Phil B 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"><div dir="ltr"><div dir="ltr">Juan,<div><br></div><div>After reading Luciano's response I realized I probably completely misunderstood what you were saying here...</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 10, 2019 at 6:24 PM Juan Vuletich <<a href="mailto:juan@jvuletich.org" target="_blank">juan@jvuletich.org</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">BTW, we'd really make methods such as #setCollection:, <br>
#setNumerator:denominator:, actually all methods set*, all methods <br>
private* and all methods in a 'private*' category actually private... <br>
For example the comment at #privateSetX:setY: looks so silly.<br>
</blockquote><div><br></div><div>Are you proposing that we extend the visibility to class-side as well and make these methods #pvt* or treating members of the 'private' category[1] as if they were #pvt*? I'm still not feeling like I completely understand what you're suggesting...</div><div><br></div><div>Thanks,</div><div>Phil</div><div><br></div><div>[1] If it's the latter, keep in mind from my previous response that there are often multiple private* categories in other people's code... would we handle those (based on a private prefix?) or simply say only 'private' is private?</div></div></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>