Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <2491914.vAMVHVRlcs@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Tue, 27 Mar 2012 18:31:59 +0200 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit Subject: Re: call by reference Newsgroups: comp.lang.javascript References: <97d44dea-bfe6-4300-bd31-31c78103a9d7@er9g2000vbb.googlegroups.com> <37mpm7t5g4or5h5n14sbf7p66p44bv0obe@4ax.com> <87ehsfcfie.fsf@uta.fi> <8762dqdc4d.fsf@uta.fi> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 24 NNTP-Posting-Date: 27 Mar 2012 18:32:00 CEST NNTP-Posting-Host: 5fa6f30f.newsspool4.arcor-online.net X-Trace: DXC=^;76^=g3_g5QbA1[CgMQ004IUK Gene Wirchenko writes: >> Aatu Koskensilta wrote: >>> In general it's not possible to pass an object as an argument for a >>> function in Javascript, by reference or otherwise. What is possible is >>> to pass by value a reference to an object. >> >> "In general"? How is it *ever* possible to pass an object by >> reference? I can not think of a way. If there is one, I would really >> like to know. > > As mentionted in this thread, apparently the arguments object is > passed by reference. As explained in this thread, it is not. PointedEars -- Anyone who slaps a 'this page is best viewed with Browser X' label on a Web page appears to be yearning for the bad old days, before the Web, when you had very little chance of reading a document written on another computer, another word processor, or another network. -- Tim Berners-Lee