Path: csiph.com!weretis.net!feeder4.news.weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Found a bug in javascript see what it printout Date: Mon, 18 Jan 2016 19:59:35 +0100 Organization: PointedEars Software (PES) Lines: 51 Message-ID: <3610642.bVce6HhO8U@PointedEars.de> References: <4ab38ff8-e97b-43cb-9077-b5ca6ee23ea1@googlegroups.com> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1453143577 10063 eJwFwQkBwDAIA0BL4QtMzlrAv4TehVF40xn02FhIyo/isXDWNTiGeoaQMu+clE7uR3HdVjz3AQ/Y (18 Jan 2016 18:59:37 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Mon, 18 Jan 2016 18:59:37 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwFwQkBACAIBLBKwgFKHN7+EdwURlZXTE10dWUosza3CVv8/EWFdTWUU2mqk1ek083Ad9xPXHTBTy5iPpAdFt0= Cancel-Lock: sha1:GkqQh6MbliFHnL0FgJ/oSPTEC2s= X-NNTP-Posting-Host: eJwFwYEBwDAEBMCV6j2ScQj2H6F3pi7+gm5OW1t0GOrqqdpmJPqrkBegApNypVvp1DM5b+IHGeURKQ== Xref: csiph.com comp.lang.javascript:29322 Chris M. Thomasson wrote: >> wrote in message >> news:4ab38ff8-e97b-43cb-9077-b5ca6ee23ea1@googlegroups.com... That is an attribution novel, not a proper attribution. Not only is it too long, the name of the author is missing. Also, the quotation level is wrong: the attribution line that *you* create is obviously not part of the quoted text, so it must not have a quotation character. If your newsreader software (Windows Live Mail) cannot be configured properly, get a better one, such as KNode or Thunderbird/Icedove. > [...] > > AFAICT, you really need to drill down on the (var) keyword... > _____________________ >> function main(){ >> base=10; >> outStr=""; >> prime=false; >> primeleg=false; >> j=1; >> i=j; > } > _____________________ > > The above can be really dangerous! > > http://scribu.net/blog/javascript-var-keyword-for-php-developers.html > > ;^) 1. There is no “Javascript” (see also my sig). 2. It is worse than described in that article. The code above will throw a ReferenceError exception in strict mode if base etc. do not resolve to the property of an object or have not been declared identifiers of variables. Or, if they resolve to properties of an object, and those properties can or cannot be written to, anything can happen, depending on the object and the property. (The latter is independent of the execution mode.) We have discussed this here many times before. 3. The From header field value of your posting violates RFC 5536 and disregards netiquette. While that may be acceptable to a source of trolls such as aioe.org, in Usenet it is not. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.