ColdFusion compiler is broken
Tuesday, September 22nd, 2009Following on a tweet from Sean Corfield, I couldn’t believe it is possible to create a function called if, else, while and so on as well as declare variable called var. Here is the code that may hurt your head:
<cffunction name="if">
<cfargument name="val1" />
<cfargument name="val2" />
<cfif val1 eq val2>
<cfreturn true />
</cfif>
<cfreturn false />
</cffunction>
<cffunction name="hello">
<cfset var var [...]