Thomas Thurman on Tue, 24 Sep 2002 08:50:11 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] [C QUESTION] how to tell caller of a function


On Mon, 23 Sep 2002, gabriel rosenkoetter wrote:

> On Mon, Sep 23, 2002 at 07:43:22PM -0400, Naresh wrote:
> > Isn't it bad programming practice to call a function (other then main())
> > inside a function?
> 
> Of course not. It *would* be bad programming practice (or, at least,
> confusing) to call main() from within another function...

And, in C++, illegal. I thought perhaps Naresh might have meant it the
other way around-- that it's bad practice to call a function from a
function other than main()-- but I still can't see why this would be true.

T

_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug