<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">I think I would append 'Preference' to
the method name. <br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">If not, when visiting a Preference of
type Boolean, the visitor gets visitBoolean: , but is not passed a
Boolean object, it is passed a Preference instance. So, I'd
prefer: visitBooleanPreference: aPreference</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">accept: aVisitor<br>
| visitMethod |<br>
self isTypeAClass <br>
ifTrue: [ visitMethod _ ('visit', type name,
'Preference:') asSymbol ]<br>
ifFalse: [visitMethod _ ('visit', type species,
'Preference:') asSymbol ].<br>
aVisitor perform: visitMethod with: self! !</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">That's my preference! (yes, I'm so
funny ...)</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">El 9/5/22 a las 17:06, Hilaire
Fernandes via Cuis-dev escribió:<br>
</div>
<blockquote type="cite"
cite="mid:2588a1c5-500f-ba12-e737-6aa09c5d3c03@drgeo.eu">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p><font size="4">Hi, <br>
</font></p>
<p><font size="4">Here is an updated version with an accept method
for a visitor.</font></p>
<p>Hilaire<br>
</p>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu" moz-do-not-send="true">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu" moz-do-not-send="true">http://blog.drgeo.eu</a></pre>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
</blockquote>
<p><br>
</p>
</body>
</html>