<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - comments on Post, viewing source of module local procedures</title>
    <link>http://www.mapleprimes.com/posts/97802-Viewing-Source-Of-Module-Local-Procedures</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Fri, 12 Jun 2026 08:22:33 GMT</lastBuildDate>
    <pubDate>Fri, 12 Jun 2026 08:22:33 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest comments added to the Post, viewing source of module local procedures</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - comments on Post, viewing source of module local procedures</title>
      <link>http://www.mapleprimes.com/posts/97802-Viewing-Source-Of-Module-Local-Procedures</link>
    </image>
    <item>
      <title>non-associative</title>
      <link>http://www.mapleprimes.com/posts/97802-Viewing-Source-Of-Module-Local-Procedures?ref=Feed:MaplePrimes:viewing source of module local procedures:Comments#comment97876</link>
      <itunes:summary>&lt;p&gt;A drawback of that approach is that, because the :: operator is non-associative, parentheses are required.&amp;nbsp; In &lt;a href="http://www.mapleprimes.com/posts/95182-Emacs-Debugger-For-Maple"&gt;mdb&lt;/a&gt;, I parse a string inside a &lt;strong&gt;try/finally&lt;/strong&gt; statement that temporarily assignes &lt;strong&gt;opaquemodules&lt;/strong&gt; to false.&amp;nbsp; Thus&lt;/p&gt;
&lt;pre&gt;(**) mdb:-showstat("mdb:-showstat"); &lt;br&gt;mdb:-showstat := proc(p::string)&lt;br&gt;local opacity;&lt;br&gt;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; try&lt;br&gt;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; opacity := kernelopts(('opaquemodules') = false);&lt;br&gt;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map2(`debugger/printf`,"\n%s",debugopts(('procdump') = parse(p)))&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; finally&lt;br&gt;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kernelopts(('opaquemodules') = opacity)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end try;&lt;br&gt;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp; return NULL&lt;br&gt;end proc&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/pre&gt;</itunes:summary>
      <description>The latest comments added to the Post, viewing source of module local procedures</description>
      <guid>97876</guid>
      <pubDate>Sat, 16 Oct 2010 22:58:30 Z</pubDate>
      <itunes:author>Joe Riel</itunes:author>
      <author>Joe Riel</author>
    </item>
    <item>
      <title>thanks</title>
      <link>http://www.mapleprimes.com/posts/97802-Viewing-Source-Of-Module-Local-Procedures?ref=Feed:MaplePrimes:viewing source of module local procedures:Comments#comment98036</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/posts/97802-Viewing-Source-Of-Module-Local-Procedures#comment97876"&gt;@Joe Riel&lt;/a&gt; Thanks for mentioning that, Joe. (And, of course, I had used the round-bracket delimiters in my posted example, but failed to mention them.)&lt;/p&gt;
&lt;p&gt;I find that it is not common for me to need 1 pair of round-brackets due to this non-associativity, and much rarer still that I ever need more than a single pair. So I am content with typing the two extra characters, as opposed to updating my own Maple customizations. But of course that is a personal choice.&lt;/p&gt;
&lt;p&gt;I can see that modules help control and manage the (esp. global) namespace. But I don't see why the usual :- colon-dash form cannot be made to simply work by default for passing module locals to `showstat`, `stopat`, and `trace`.&lt;/p&gt;
&lt;p&gt;I can't really envision how those debugging utilities could be used in a way that would affect normal runtime, so isn't it safe to allow those debugging utilities to just "see" the modules transparently?&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, viewing source of module local procedures</description>
      <guid>98036</guid>
      <pubDate>Fri, 22 Oct 2010 06:31:50 Z</pubDate>
      <itunes:author>pagan</itunes:author>
      <author>pagan</author>
    </item>
    <item>
      <title>evaluation</title>
      <link>http://www.mapleprimes.com/posts/97802-Viewing-Source-Of-Module-Local-Procedures?ref=Feed:MaplePrimes:viewing source of module local procedures:Comments#comment98042</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/posts/97802-Viewing-Source-Of-Module-Local-Procedures#comment98036"&gt;@pagan&lt;/a&gt; The problem is that the member operator (:-) gets evaluated before the expression is passed to &lt;strong&gt;stopat&lt;/strong&gt;, etc.&amp;nbsp; Surrounding it with forward quotes or declaring the parameter with &lt;strong&gt;uneval&lt;/strong&gt; won't help.&amp;nbsp; The only way around this is to use a different format, such as the double colon or string.&amp;nbsp; Another way is to use the bracket notation, that is somemodule[somelocal].&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, viewing source of module local procedures</description>
      <guid>98042</guid>
      <pubDate>Fri, 22 Oct 2010 08:30:24 Z</pubDate>
      <itunes:author>Joe Riel</itunes:author>
      <author>Joe Riel</author>
    </item>
    <item>
      <title>Maple ini file</title>
      <link>http://www.mapleprimes.com/posts/97802-Viewing-Source-Of-Module-Local-Procedures?ref=Feed:MaplePrimes:viewing source of module local procedures:Comments#comment98089</link>
      <itunes:summary>&lt;p&gt;I put that kernelopts(opaquemodules=false) in my Maple ini file a long time ago, together with a series of other useful things - such as setiing the rtablesize in interface to 25, with(plots), setting libname to include a bunch of other libraries etc. (it's rather long) and never had any problems with that as far as I recall. What could be possibly wrong with that?&lt;/p&gt;
&lt;p&gt;I think I posted about that usage of :: about a year or so ago on this site, when I discovered it, but it seems as it was unnoticed by most people.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://don't_know_the_homepage.net"&gt;@Joe Riel&lt;/a&gt;. Great work with &lt;a href="http://github.com/JoeRiel/Maple-Debugger--mdb-"&gt;mdb&lt;/a&gt; - I'll take a look at the Windows version (sometime soon hopefully). I always enjoy your work!&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;_______________&lt;br&gt; Alec Mihailovs, PhD&lt;br&gt; Maplesoft Member&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, viewing source of module local procedures</description>
      <guid>98089</guid>
      <pubDate>Mon, 25 Oct 2010 01:49:18 Z</pubDate>
      <itunes:author>Alec Mihailovs</itunes:author>
      <author>Alec Mihailovs</author>
    </item>
    <item>
      <title>a year ago</title>
      <link>http://www.mapleprimes.com/posts/97802-Viewing-Source-Of-Module-Local-Procedures?ref=Feed:MaplePrimes:viewing source of module local procedures:Comments#comment98095</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/posts/97802-Viewing-Source-Of-Module-Local-Procedures#comment98089"&gt;@Alec Mihailovs&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, almost exactly &lt;a href="http://www.mapleprimes.com/posts/36570-What-Does-Invrec-Mean-In-The-Procedure#comment62733"&gt;a year ago&lt;/a&gt;. I did noticed it, but I do prefer &lt;span&gt;changing &lt;strong&gt;kernelopts&lt;/strong&gt; because if I am looking at the code of a library routine, most often I want to try it and see how it works, missing its documentation. &lt;br&gt;&lt;/span&gt;&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, viewing source of module local procedures</description>
      <guid>98095</guid>
      <pubDate>Mon, 25 Oct 2010 03:02:10 Z</pubDate>
      <itunes:author>Alejandro Jakubi</itunes:author>
      <author>Alejandro Jakubi</author>
    </item>
    <item>
      <title>By the way</title>
      <link>http://www.mapleprimes.com/posts/97802-Viewing-Source-Of-Module-Local-Procedures?ref=Feed:MaplePrimes:viewing source of module local procedures:Comments#comment98096</link>
      <itunes:summary>&lt;p&gt;By the way, I wrote several functions accessing MapleCloud programmatically from any interface (including Command Line and Classic - I remember the original author of this thread posting about that, but don't have time at the moment to search for that.) That includes getting a list of groups that one can access, the list of posts there, translating their titles, retrieving worksheets in these lists, submitting worksheets (and, perhaps, not only worksheets), chat etc. Unfortunately, only for Maple 14 - I used several functions there (such as Encode(..., percent), Decode(..., percent)) which are not present in Maple 13 or earlier.&lt;/p&gt;
&lt;p&gt;It is not finished - not everything is covered - such as approving members in one of your groups, for example - because I didn't have any experience with that, so I couldn't trace the corresponding packets (or messages) - if somebody wants to join test@295, I'll get that, too :).&lt;/p&gt;
&lt;p&gt;Also, the login (enabling the access to groups other than public, Maplesoft@admin, and private) is only for Maplesoft accounts - I have a Google email, but didn't try to login to MapleCloud using it.)&lt;/p&gt;
&lt;p&gt;If there were a sufficient interest in that I could post what I wrote already (even if it is not finished) on one of my websites - mapleadvisor (named in honor of Robert Israel) perhaps. That also includes some utility functions - such as gzip and gunzip (from Maple - both for files and Arrays) - works faster than standard gzip in Linux or Cygwin, by the way; a proper compression in the zlib format (in Maple 14 Compress in StringTools compresses not only a string, but also a 0 after it - which is not only ridiculous, but also differs from any other zlib implementation that I am aware of), calculations of adler32, crc32 etc.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;_______________&lt;br&gt; Alec Mihailovs, PhD&lt;br&gt; Maplesoft Member&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, viewing source of module local procedures</description>
      <guid>98096</guid>
      <pubDate>Mon, 25 Oct 2010 03:21:35 Z</pubDate>
      <itunes:author>Alec Mihailovs</itunes:author>
      <author>Alec Mihailovs</author>
    </item>
  </channel>
</rss>