Hmm. I tried rewriting begin/end as initialization/end, but scriptedmain.p
still won't compile to an executable. fpc just creates a .PPU file.

scriptedmain.p
https://github.com/mcandre/scriptedmain/tree/master/pascal

Cheers,

Andrew Pennebaker
www.yellosoft.us

On Thu, Oct 13, 2011 at 3:40 PM, Jonas Maebe <jonas.ma...@elis.ugent.be>wrote:

>
> On 13 Oct 2011, at 21:37, Andrew Pennebaker wrote:
>
> > 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.
>
> Yes: http://www.freepascal.org/docs-html/ref/refse72.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