Re: Declaring a Function Before it is used

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Thu, 30 Oct 2003 08:02:32 -0500, Irv Mullins <irvm at ellijay.com>
wrote:

>it might be nice to be able to give meaningful 
>or descriptive names to the parameters. 

Why? The actual routine definition does that.
All you need to know is whether it is a procedure or function, which
I'm assuming won't be difficult to deduce from the context (unless
someone has an example where it might be?) and the number of
parameters, which again I would imagine is just a matter of counting
them.

One thing I will say is that forward definition of types should NOT be
allowed, since by doing so they would actually be used before they
were defined, to allocate the right space for the variable, as opposed
to functions and procedures which can be referenced, but not actually
called until after the routine is properly defined.

Pete
PS As to performance issues, a program is only loaded once. Imagine it
takes an extra 20,000 instructions, say 1,000,000 machine cycles.
That's what? 0.004 seconds at 250MHz, 0.0005 seconds at 2GHz?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu