Posted by Peter Salzman on 11/15/05 11:26
I have two files which implement functionality in many of my web pages. Each
file uses a function named "parseArguments()" that's critical for each of the
two files.
I often include both files into one webpage, which results in a name clash
for parseArguments().
What I really would like is the concept of static functions from the C
programming language. A static function is one that has strict file scope:
no function outisde the containing module sees the function.
Is there a way to limit the "linkage" of a function to file scope only?
Thanks!
Pete
Navigation:
[Reply to this message]
|