<?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: Conditional Compilation</title>
	<atom:link href="http://jacksondunstan.com/articles/502/feed" rel="self" type="application/rss+xml" />
	<link>http://jacksondunstan.com/articles/502</link>
	<description>Mastering AS3</description>
	<lastBuildDate>Tue, 07 Feb 2012 09:30:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: mrm</title>
		<link>http://jacksondunstan.com/articles/502/comment-page-1#comment-529</link>
		<dc:creator>mrm</dc:creator>
		<pubDate>Wed, 17 Feb 2010 12:46:24 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=502#comment-529</guid>
		<description>It should be noted that you can&#039;t do gimmicks like this one:
&lt;pre&gt;
CONFIG::debug {
	// do something if debugging
/*
}
	// do something else in production
	if (true) {
//*/
}
&lt;/pre&gt;

What the above code snippet is trying to achieve is run some code if CONFIG::debug is true and some other code if it&#039;s false. It doesn&#039;t work because the compiler first strips all the comments out and then looks for -define&#039;d constants.

However, you can do this:
&lt;pre&gt;
if (CONFIG::debug) {
	// do something if debugging
}
else {
	// do something else in production
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>It should be noted that you can&#8217;t do gimmicks like this one:</p>
<pre>
CONFIG::debug {
	// do something if debugging
/*
}
	// do something else in production
	if (true) {
//*/
}
</pre>
<p>What the above code snippet is trying to achieve is run some code if CONFIG::debug is true and some other code if it&#8217;s false. It doesn&#8217;t work because the compiler first strips all the comments out and then looks for -define&#8217;d constants.</p>
<p>However, you can do this:</p>
<pre>
if (CONFIG::debug) {
	// do something if debugging
}
else {
	// do something else in production
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Og2t</title>
		<link>http://jacksondunstan.com/articles/502/comment-page-1#comment-488</link>
		<dc:creator>Og2t</dc:creator>
		<pubDate>Thu, 04 Feb 2010 09:45:16 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=502#comment-488</guid>
		<description>Ignore my last comment, didn&#039;t realise you can use MXMLC in FCSH ;-)</description>
		<content:encoded><![CDATA[<p>Ignore my last comment, didn&#8217;t realise you can use MXMLC in FCSH ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Og2t</title>
		<link>http://jacksondunstan.com/articles/502/comment-page-1#comment-487</link>
		<dc:creator>Og2t</dc:creator>
		<pubDate>Thu, 04 Feb 2010 09:28:17 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=502#comment-487</guid>
		<description>Thanks for sharing Jackson, can you do the same with FCSH? And also disable all trace() – as in Flash IDE? I am looking for to compile the SWF server side, preferably using FCSH (for speed).</description>
		<content:encoded><![CDATA[<p>Thanks for sharing Jackson, can you do the same with FCSH? And also disable all trace() – as in Flash IDE? I am looking for to compile the SWF server side, preferably using FCSH (for speed).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

