Is it possible to have a begin/end declaration in a unit a la C's main function? I would like my units to double as libraries and executables.<div><br></div><div>In other words, I'd like to be able to do <a href="http://rosettacode.org/wiki/ScriptedMain#Python">scriptedmain</a> in Pascal.<br>
<div><div><br></div>Cheers,<div><br></div><div>Andrew Pennebaker</div><div><a href="http://www.yellosoft.us" target="_blank">www.yellosoft.us</a></div>
<br><div class="gmail_quote">On Thu, Oct 13, 2011 at 2:41 PM, Jonas Maebe <span dir="ltr"><<a href="mailto:jonas.maebe@elis.ugent.be">jonas.maebe@elis.ugent.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On 13 Oct 2011, at 20:36, Andrew Pennebaker wrote:<br>
<br>
> If I were using C, I would type:<br>
><br>
> #include "code.h"<br>
><br>
> If I were using Python, I would type:<br>
><br>
> import code<br>
><br>
> What's the command to load code in Pascal?<br>
<br>
</div><a href="http://www.learn-programming.za.net/programming_pascal_learn12.html" target="_blank">http://www.learn-programming.za.net/programming_pascal_learn12.html</a><br>
<br>
<br>
Jonas<br>
<br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</blockquote></div><br></div></div>