[fpc-pascal] using functions from units & main programme

John Lee johnelee0 at gmail.com
Sat Nov 19 17:19:40 CET 2011


Thanks for the feedback & suggestions - looks like either functions as
parameters or using objects are only ways to do this - either makes the
code look horrible & more complex that necessary imo cf the normal use of
functions. Surprised this capability hasn't come up before because doesn't
sound technically difficult to do.
John

On 18 November 2011 22:34, Bart <bartjunk64 at gmail.com> wrote:

> On 11/18/11, Sven Barth <pascaldragon at googlemail.com> wrote:
>
> > But he wants to call "fnb" in the main program and have that call "fna"
> > of the main program instead of "fna" from "jim".
>
> You're right.
> I misread the original post.
>
> Bart
> _______________________________________________
> 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/20111119/6de6a935/attachment.html>


More information about the fpc-pascal mailing list