Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Can somebody explain this code Date: Mon, 28 Mar 2016 01:07:47 +0200 Organization: PointedEars Software (PES) Lines: 21 Message-ID: <2497856.AOaF6Xk2y9@PointedEars.de> References: <2380128.LjnWGdRavf@PointedEars.de> <3457976.2eFHA4iNFV@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1459120068 19182 eJwFwYEBwCAIA7CXhtCK50iR/09YAqdROwgGBuPKeqPT9b6cs6WGpZI2q91iBSouumeVLvUDOQoSIw== (27 Mar 2016 23:07:48 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sun, 27 Mar 2016 23:07:48 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwNysEBwCAIA8CVEEiEcRBx/xHaex+Mi72doOPhadjh+M2ZXVCUhFBA8bZ7A3aiI9OYVD6n9v+6fJbqqp0fOSoUsQ== Cancel-Lock: sha1:n+pkEGxVWqTysa9SWyNpeOO6FPA= X-NNTP-Posting-Host: eJwNy8EBwCAIA8CVKkgg44DI/iPY+58pFo5vGLaNjaIYDUresmiJ9VF5xit65O7UbEp7lf2DfBzqESE= Xref: csiph.com comp.lang.javascript:30122 Aleksandro wrote: > On 27/03/16 17:44, Thomas 'PointedEars' Lahn wrote: >> Aleksandro wrote: >>> On 24/03/16 16:30, Thomas 'PointedEars' Lahn wrote: >>>> var myFunc; >>>> myFunc = function () { alert("This is my anonymous function"); }; >>>> >>>> (In that case, “myFunc” is assigned the “undefined” value first.) >>> Would the VM actually assign undefined first? I doubt it. >> On what grounds? > > Well, there's a thing called optimization... you know... Although successive lines, they are not necessarily processed so. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.