Re: Hello and *++* ?



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.
.



Relevant Pages

  • Re: For Your Amusement
    ... Whilesome professors are ... - historically BASICs have been the language that people who have a ... VB.NET is not filling that gap ...
    (microsoft.public.vb.general.discussion)
  • Re: As the Crow flies.
    ... Because you can't comprehend the basics. ... If your code is faster than mine, and can be shown to execute in ...
    (talk.origins)
  • Re: Hello and *++* ?
    ... Richard Heathfield wrote: ... Ah, a terminology dispute. ... I was thinking of the BASICs of our youth. ...
    (comp.lang.c)
  • [OT] BASIC and GC (was: Why isnt multiple inheritance very useful?)
    ... >> reference counting would be the more efficient option) ... Or is that a typo for "Reference counting isn't an alternative to ... But now that some BASICs have dynamic arrays and even partial ...
    (comp.lang.cpp)
  • Re: For Your Amusement
    ... >- historically BASICs have been the language that people who have a ... the language for analysts who want to write their own code ... >VB.NET is not filling that gap ...
    (microsoft.public.vb.general.discussion)