Re: Hello and *++* ?
- From: Richard Heathfield <rjh@xxxxxxxxxxxxxxx>
- Date: Fri, 16 Feb 2007 10:11:03 +0000
Harald van D?k said:
Richard Heathfield wrote:
Harald van D?k said:
Richard Heathfield wrote:
Harald van D?k said:
Richard Heathfield wrote:
Harald van D?k said:
<snip>
Ah, a terminology dispute. Fair enough. So how would you define
"global variable"?
To me, a global variable is one that's not local, where local
could be local to a procedure, function, object, module, block,
or (almost) anything else.
Whereas to me, a global variable is one that's accessible from
everywhere, without your having to do anything special to make it
accessible from a particular place. As in VS/BASIC, for example.
The only BASIC variants I've used extensively didn't support
modules in any form or shape, so I don't know enough to comment on
Microsoft's latest.
Neither do I. I was thinking of the BASICs of our youth.
Ah. I figured you meant Visual Studio's BASIC. I had searched for "VS/
BASIC" but couldn't find anything relevant, because of the many, many
unrelated results.
VS/BASIC shipped with VM/CMS about a trillion years ago. (It may still
do so, for all I know.) It was my first programming language, closely
followed by EXEC, which was a weird kind of batch/scripting language,
sortakinda.
<snip>
Incidentally, the reason for my "no special syntax" rule is that
otherwise we'd have to count, say, fields in a database as global
variables.
I'm not sure I would count them as variables, global or otherwise.
And I'm not sure that I would count 'variable' as being a useful C term.
(I accept, however, that the Standard does mentions them from time to
time.)
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
.
- Follow-Ups:
- Re: Hello and *++* ?
- From: Harald van Dijk
- Re: Hello and *++* ?
- References:
- Re: Hello and *++* ?
- From: Christopher Layne
- Re: Hello and *++* ?
- From: Richard Heathfield
- Re: Hello and *++* ?
- From: Christopher Layne
- Re: Hello and *++* ?
- From: Richard
- Re: Hello and *++* ?
- From: Richard Heathfield
- Re: Hello and *++* ?
- From: Harald van Dijk
- Re: Hello and *++* ?
- From: Richard Heathfield
- Re: Hello and *++* ?
- From: Harald van Dijk
- Re: Hello and *++* ?
- From: Richard Heathfield
- Re: Hello and *++* ?
- From: Harald van Dijk
- Re: Hello and *++* ?
- From: Richard Heathfield
- Re: Hello and *++* ?
- From: Harald van Dijk
- Re: Hello and *++* ?
- From: Richard Heathfield
- Re: Hello and *++* ?
- From: Harald van Dijk
- Re: Hello and *++* ?
- Prev by Date: Re: How to count bits in a unsigned int?
- Next by Date: Re: How to get the IP address of my machine through a 'C' program
- Previous by thread: Re: Hello and *++* ?
- Next by thread: Re: Hello and *++* ?
- Index(es):
Relevant Pages
|