<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.wiki.mohid.com/index.php?action=history&amp;feed=atom&amp;title=Code_declarations</id>
		<title>Code declarations - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.wiki.mohid.com/index.php?action=history&amp;feed=atom&amp;title=Code_declarations"/>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Code_declarations&amp;action=history"/>
		<updated>2026-04-04T19:57:33Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Code_declarations&amp;diff=117&amp;oldid=prev</id>
		<title>Guillaume: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Code_declarations&amp;diff=117&amp;oldid=prev"/>
				<updated>2008-12-03T10:26:59Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 10:26, 3 December 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Guillaume</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Code_declarations&amp;diff=116&amp;oldid=prev</id>
		<title>192.168.20.148 at 14:01, 10 October 2006</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Code_declarations&amp;diff=116&amp;oldid=prev"/>
				<updated>2006-10-10T14:01:34Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;1)	When declaring the '''USE''' statement, at the beginning of a module, be sure that all the declarations are really used, as it optimize the compiling speed and memory usage.&lt;br /&gt;
&lt;br /&gt;
2)	Always use the '''ONLY''' statement when using the '''USE''' statement, to optimize modules linkage. &lt;br /&gt;
&lt;br /&gt;
3)	When declaring variables within a derived '''TYPE''', be sure to erase variables that are not used, as they are not detected as unused variables by the compiler.&lt;br /&gt;
&lt;br /&gt;
4)	Be sure to erase all unused or obsolete source code (commented or not commented).&lt;br /&gt;
&lt;br /&gt;
5)	Declare all programmed subroutines at the beginning of each module and align them (placing a tab) in the form of a hierarchical tree.&lt;br /&gt;
&lt;br /&gt;
6)	When naming IF structures, avoid names using '''IF''' (e.g. if1, if2, …), some compilers may have some problems dealing with that syntax.&lt;br /&gt;
&lt;br /&gt;
7)	Define error labels, placing the name of the subroutine, the name of the module and an error ID (e.g. ConstructModel – ModuleModel – ERR10); It is recommended to number the error ID, using a 10 number interval, in order to add new errors without having to renumber all the error messages above. Be sure not to have equal errors messages, otherwise the model can stop in one of them and the user will be confused.&lt;br /&gt;
&lt;br /&gt;
8)	The most used subroutine in Mohid source code is subroutine [[GetData]], used to access information from an input data file, given by a certain [[keyword]] or a [[block]]. Each time the subroutine is used, the search for the keyword value is logged in the [[UsedKeywords]] file. In order to properly log all used keywords, be sure to include in the call to GetData subroutine, the ClientModule argument, that must indicate the module from where the call is made. Also, when applicable, use the Default argument, which allows to define a default value for that keyword, in case this keyword is not found in the input data file.&lt;br /&gt;
&lt;br /&gt;
[[Category:Programming]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	</feed>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-56589921-5', 'auto');
  ga('send', 'pageview');
</script>