For Programmers: Free Programming Magazines  


Home > Archive > Fortran > November 2005 > Re: TRIM









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: TRIM
Ken Plotkin

2005-11-17, 3:57 am

On Wed, 16 Nov 2005 13:33:01 +0000, Catherine Rees Lay
<spamtrap@polyhedron.com> wrote:


>Well, it's actually true. If all your main program does is call a
>subroutine, and you use the function from that subroutine, you don't
>have to declare the function in the main program.
>
>You do have to declare it in the subroutine, though (or wherever else
>it's called from). And there's no way to do it with a variable length.
>So while his statement is technically true, it's totally useless as far
>as answering the question goes.


If you call a function, doesn't the calling program have to know the
type of the function?

I've blown things up more than enough times by forgetting to do that.

Ken Plotkin

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com