[fpc-pascal] How do I load external Pascal code?

Andrew Pennebaker andrew.pennebaker at gmail.com
Thu Oct 13 21:37:26 CEST 2011


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.

In other words, I'd like to be able to do
scriptedmain<http://rosettacode.org/wiki/ScriptedMain#Python>in
Pascal.

Cheers,

Andrew Pennebaker
www.yellosoft.us

On Thu, Oct 13, 2011 at 2:41 PM, Jonas Maebe <jonas.maebe at elis.ugent.be>wrote:

>
> On 13 Oct 2011, at 20:36, Andrew Pennebaker wrote:
>
> > If I were using C, I would type:
> >
> > #include "code.h"
> >
> > If I were using Python, I would type:
> >
> > import code
> >
> > What's the command to load code in Pascal?
>
> http://www.learn-programming.za.net/programming_pascal_learn12.html
>
>
> Jonas
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20111013/a44e55e9/attachment.html>


More information about the fpc-pascal mailing list