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.ma...@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@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to