Simon,

I don't agree with your assessment.

While unused prototypes don't occupy program object space, they do
occupy space.

Here's what I consider the advantages...

1) By Defining the prototypes you want to use, you make clear the
intent.

2) Copying 1000 prototypes when you only need 2, in my opinion,
increases the complexity with respect to debug. There's a lot of unused
CRAP there when you copy all the unnecessary prototypes.

I could probably name some more, but I've got to head out to the office
about now!

Gary Guthrie
Senior Technical Editor, iSeries NEWS


Simon Coulter wrote:
>
> Thirdly, why all this crap?
>
>  /Define PValidCat
>  /Define PUsrSec
>  /Define GIfPrint
>  /Define GEmail
>  /Define GTxtMsg
>
> These are conditioning prototypes only. They don't occupy program space.
> Forget conditional directives around these prototypes and just bring them
> in anyway.  You are increasing the complexity with no gain.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.