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


Groups > comp.lang.javascript > #12588

Re: Integer vs. string

From Dr J R Stockton <reply1210@merlyn.demon.co.uk>
Newsgroups comp.lang.javascript
Subject Re: Integer vs. string
Date 2012-03-10 21:06 +0000
Organization Home
Message-ID <q7bVHgUMJ8WPFwQl@invalid.uk.co.demon.merlyn.invalid> (permalink)
References <timstreater-677053.13490009032012@news.individual.net>

Show all headers | View raw


In comp.lang.javascript message <timstreater-677053.13490009032012@news.
individual.net>, Fri, 9 Mar 2012 13:49:00, Tim Streater
<timstreater@greenbee.net> posted:

>I got burnt today by doing:
>
> var a = b + 1;

You could alter the cooking with     var a = b - -1 // !

To help diagnosis, as b seems to be a general-purpose variable, you
could alter its identifier for different uses and see what happens.

-- 
 (c) John Stockton, nr London UK.  ?@merlyn.demon.co.uk  DOS 3.3 6.20 ; WinXP.
   Web  <http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
   PAS EXE TXT ZIP via  <http://www.merlyn.demon.co.uk/programs/00index.htm>
   My DOS  <http://www.merlyn.demon.co.uk/batfiles.htm> - also batprogs.htm.

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


Thread

Integer vs. string Tim Streater <timstreater@greenbee.net> - 2012-03-09 13:49 +0000
  Re: Integer vs. string "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-03-09 18:59 +0000
    Re: Integer vs. string Tim Streater <timstreater@greenbee.net> - 2012-03-09 21:47 +0000
  Re: Integer vs. string RobG <rgqld@iinet.net.au> - 2012-03-10 14:56 -0800
    Re: Integer vs. string Tim Streater <timstreater@greenbee.net> - 2012-03-10 23:14 +0000
  Re: Integer vs. string Dr J R Stockton <reply1210@merlyn.demon.co.uk> - 2012-03-10 21:06 +0000

csiph-web