<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>More On ByRef vs ByVal</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/15/53005.aspx</link><description>It occurs to me that there may be some confusion about what exactly "byref" and "byval" mean in JScript and VBScript. This is frequently a source of confusion, as VBScript has byref behaviour not supported by JScript.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>byVal - was it ever the default? | keyongtech</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/15/53005.aspx#9362090</link><pubDate>Thu, 22 Jan 2009 06:27:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9362090</guid><dc:creator>byVal - was it ever the default? | keyongtech</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.keyongtech.com/1945642-byval-was-it-ever-the"&gt;http://www.keyongtech.com/1945642-byval-was-it-ever-the&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9362090" width="1" height="1"&gt;</description></item><item><title>re: More On ByRef vs ByVal</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/15/53005.aspx#656799</link><pubDate>Wed, 05 Jul 2006 14:47:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:656799</guid><dc:creator>David Reed</dc:creator><description>Just thought I'd say for anyone else googling to this that in VBScript &amp;quot;By Reference&amp;quot; does not mean two different things. It _always_ means a pointer to the data rather than the data itself. I think what FAIC was getting at is that for intrinsic types (integer, float, string, etc) the variable contains the actual value (e.g. variable intX actually contains the number 3) whereas for object types the variable contains a pointer to the actual object (e.g. variable objX contains a memory location value a.k.a. a pointer to the object). Thus when dealing with objects, everything you do is implicilty &amp;quot;By Reference&amp;quot;, wherea when dealing with intrinsic types, everything you do is implicitly by &amp;quot;By Value&amp;quot;. Incidentally this does not affect the rules behind passing variables ByRef and ByVal i.e. passing an object variable ByRef allows you to change the variable value, in this case a the pointer to the object data, which means you can reassign it to another object whereas passing ByVal does not (however, and this is where people get confused, irrespective of passing an object variable ByRef or ByVal you can always change the underlying object data), and passing an intrinsic variable ByRef allows you to change the variable value, in this case the actual data, whereas passing ByVal does not. C programmers tend to understand all this implicilty because of their knowledge of pointers and how languages work under the hood, but VB programmers tend to have difficuly grasping what is going on because of thier lack of exposure to pointers.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=656799" width="1" height="1"&gt;</description></item><item><title>re: Are JScript strings passed by reference?</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/15/53005.aspx#145221</link><pubDate>Tue, 01 Jun 2004 08:48:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:145221</guid><dc:creator>Fabulous Adventures In Coding</dc:creator><description>&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=145221" width="1" height="1"&gt;</description></item><item><title>re: Aaargh, Part Six: One More Thing About Comments</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/15/53005.aspx#127262</link><pubDate>Thu, 06 May 2004 20:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:127262</guid><dc:creator>Fabulous Adventures In Coding</dc:creator><description>&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=127262" width="1" height="1"&gt;</description></item><item><title>re: Aaargh, Part Six: One More Thing About Comments</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/15/53005.aspx#127247</link><pubDate>Thu, 06 May 2004 19:50:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:127247</guid><dc:creator>Fabulous Adventures In Coding</dc:creator><description>&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=127247" width="1" height="1"&gt;</description></item><item><title>re: Aaargh, Part Six: One More Thing About Comments</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/15/53005.aspx#127237</link><pubDate>Thu, 06 May 2004 19:44:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:127237</guid><dc:creator>Fabulous Adventures In Coding</dc:creator><description>&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=127237" width="1" height="1"&gt;</description></item><item><title>In, Out, In-Out, Make Up Your Mind Already</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/15/53005.aspx#75979</link><pubDate>Thu, 19 Feb 2004 04:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:75979</guid><dc:creator>Fabulous Adventures In Coding</dc:creator><description>I was talking about reference types vs. by-reference variables a while back. Recall that both JScript and VBScript have reference types (ie, objects) but JScript does not have by-reference variables. COM supports passing variable references around, but unfortunately the intersection of early-bound COM and late-bound IDispatch is a little bit goofy.&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=75979" width="1" height="1"&gt;</description></item></channel></rss>