<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi, <br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Now that most of the Preference work is
done, I want to look again at the WorldMenu. <br>
</div>
<div class="moz-cite-prefix">I read my past related writing in the
list and I find it hard to understand, it will need some
self-processing.</div>
<div class="moz-cite-prefix">If in between you got some design
ideas, please share it.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Hilaire<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Le 28/05/2022 à 19:39, Hilaire
Fernandes a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:c9c242ae-5a53-1212-e54d-049cec11f254@drgeo.eu">
<p><font size="4">My sentence was hard to understand, it should
read:</font></p>
<blockquote>
<p>Another interest of the builder is to have just one pragma
(<worldMenu>) or method name (#worldMenuSpec: aBuilder)
for the whole menu hierarchy <b>(including menu and submenus
definition)</b>, and a different <b>symbol </b>name for
each menu and submenus. <br>
</p>
</blockquote>
<p>Thinking about this, you can't define all the menus with
several methods sharing the same name (here in the example
worldMenuSpec:), the methods will have to be spread in different
classes, not practical. Now I understand very clearly why the
author of the Pharo menu registry used pragma to select the
methods providing the menu definition.</p>
<p>Oh by the way, pragma are discoverable as easily as method
implementors can be:</p>
<p><font face="monospace">Smalltalk browseAllSelect: [:m| m
pragmas anySatisfy: [:p | p key = #primitive:]]. (Hernan
courtesy)</font><br>
<br>
</p>
<p>Hilaire<br>
</p>
<div class="moz-cite-prefix">Le 28/05/2022 à 11:23, Hilaire
Fernandes a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:8e6ed3ef-d8ca-b4a5-e85f-205ea221a713@drgeo.eu">Another
interest of the builder is to have just one pragma
(<worldMenu>) or method name (#worldMenuSpec: aBuilder)
for the whole menu hierarchy, and a different name for each menu
and submenus. </blockquote>
</blockquote>
<p><br>
</p>
</body>
</html>