<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Setters using VBS and constant hacks</title>
	<atom:link href="http://www.thespanner.co.uk/2010/07/30/setters-using-vbs-and-constant-hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thespanner.co.uk/2010/07/30/setters-using-vbs-and-constant-hacks/</link>
	<description>Javascript blog with messed up syntax inside</description>
	<lastBuildDate>Thu, 26 Jan 2012 01:38:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Maciej Åebkowski</title>
		<link>http://www.thespanner.co.uk/2010/07/30/setters-using-vbs-and-constant-hacks/#comment-1793</link>
		<dc:creator>Maciej Åebkowski</dc:creator>
		<pubDate>Mon, 02 Aug 2010 05:53:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=659#comment-1793</guid>
		<description>I knew the value of global scope `x` without testing. The `undefined-inner-x` part got me a little bit confused, I would guess it would equal `3` before running. 
So I got just the first part right blindfolded :)

Iâ€™m @puck, but Iâ€™m not really into twitter, so its quite silent there :D</description>
		<content:encoded><![CDATA[<p>I knew the value of global scope `x` without testing. The `undefined-inner-x` part got me a little bit confused, I would guess it would equal `3` before running.<br />
So I got just the first part right blindfolded <img src='http://www.thespanner.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Iâ€™m @puck, but Iâ€™m not really into twitter, so its quite silent there <img src='http://www.thespanner.co.uk/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth Heyes</title>
		<link>http://www.thespanner.co.uk/2010/07/30/setters-using-vbs-and-constant-hacks/#comment-1792</link>
		<dc:creator>Gareth Heyes</dc:creator>
		<pubDate>Sat, 31 Jul 2010 01:02:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=659#comment-1792</guid>
		<description>I hope you didn&#039;t test it first, if so hello mr js hax0r :) if you have a twitter account I&#039;d be interested ;)</description>
		<content:encoded><![CDATA[<p>I hope you didn&#8217;t test it first, if so hello mr js hax0r <img src='http://www.thespanner.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  if you have a twitter account I&#8217;d be interested <img src='http://www.thespanner.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maciej Åebkowski</title>
		<link>http://www.thespanner.co.uk/2010/07/30/setters-using-vbs-and-constant-hacks/#comment-1791</link>
		<dc:creator>Maciej Åebkowski</dc:creator>
		<pubDate>Fri, 30 Jul 2010 18:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=659#comment-1791</guid>
		<description>Well, `const` works just like `var` in this example. It defines a local variable (and itâ€™s evaluated at the very start of the function/scope, before any other statements). The assignment would be done in the line the statement is located, but `return` terminates it early.
It alerts `undefined`, because at that point, `x` is already initialized (as a constant), but not yet have a value. The assignment statement fails silentlyâ€¦ because `x` is a constant, cannot be assigned to (changing `const` to `var` would change this behavior).
And of course `x` is a local variable of `y()`, so global-scope `x` remains unchanged and equals `1`.

Nice. ;-D</description>
		<content:encoded><![CDATA[<p>Well, `const` works just like `var` in this example. It defines a local variable (and itâ€™s evaluated at the very start of the function/scope, before any other statements). The assignment would be done in the line the statement is located, but `return` terminates it early.<br />
It alerts `undefined`, because at that point, `x` is already initialized (as a constant), but not yet have a value. The assignment statement fails silentlyâ€¦ because `x` is a constant, cannot be assigned to (changing `const` to `var` would change this behavior).<br />
And of course `x` is a local variable of `y()`, so global-scope `x` remains unchanged and equals `1`.</p>
<p>Nice. ;-D</p>
]]></content:encoded>
	</item>
</channel>
</rss>

