<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<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.
<br>
</blockquote>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>