Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #28034

Re: Declaring the same global variable multiple times

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: Declaring the same global variable multiple times
Date Sun, 7 Jun 2015 21:14:23 +0000 (UTC)
Organization A noiseless patient Spider
Lines 9
Message-ID <ml2c7f$an8$1@dont-email.me> (permalink)
References <7kn8natinqhrjpa3luqivrlcbrkb2mule3@4ax.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Injection-Date Sun, 7 Jun 2015 21:14:23 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="66ffcfa4470a58bcddbdcd1913f98ab4"; logging-data="10984"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JtxKX4jVRMVNJqZIWKAu8bj97UgRUgbc="
User-Agent Pan/0.136 (I'm far too busy being delicious; GIT 926a150 git://git.gnome.org/pan2)
Cancel-Lock sha1:A0ICfdmaJpR+XjWamSAEeNPuQHA=
Xref csiph.com comp.lang.javascript:28034

Show key headers only | View raw


On Sun, 07 Jun 2015 08:13:50 -0700, Joey@still_Learning.invalid wrote:

> I have an extensive script that often generates the same global variable

Why are you using global variables? Unless you can answer this question 
in a convincing manner, you probably shouldn't be using global variables.

-- 
Denis McMahon, denismfmcmahon@gmail.com

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Declaring the same global variable multiple times "Joey@still_Learning.invalid" <Joey@still_Learning.invalid> - 2015-06-07 08:13 -0700
  Re: Declaring the same global variable multiple times Steven D'Aprano <steve@pearwood.info> - 2015-06-08 01:56 +1000
  Re: Declaring the same global variable multiple times Denis McMahon <denismfmcmahon@gmail.com> - 2015-06-07 21:14 +0000
    Re: Declaring the same global variable multiple times "Joey@still_Learning.invalid" <Joey@still_Learning.invalid> - 2015-06-07 17:33 -0700
      Re: Declaring the same global variable multiple times Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2015-06-08 08:56 +0200
        Re: Declaring the same global variable multiple times "Joey@still_Learning.invalid" <Joey@still_Learning.invalid> - 2015-06-08 07:28 -0700
        Re: Declaring the same global variable multiple times "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-06-08 17:03 +0200
        Re: Declaring the same global variable multiple times Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2015-06-08 19:09 +0200
  Re: Declaring the same global variable multiple times "Joey@still_Learning.invalid" <Joey@still_Learning.invalid> - 2015-06-07 14:23 -0700

csiph-web