coldfusion - Why writedump function doesn't require semicolon in cfscript? -



coldfusion - Why writedump function doesn't require semicolon in cfscript? -

normally statement written in cfscript tag must end semicolor (;) today working sample code forgot write semicolon (;) after writedump() function still code execute fine. se below sample code , work fine ; @ end of statement. curios know why writedump work without semicolon.

i working coldfusion version 9,0,1,274733.

<cfscript> = "hello"; b = "world"; concat(a,b); writedump(a & b) writeoutput(a); </cfscript> <cffunction name="concat" access="public" output="false" returntype="string"> <cfargument name="str1" required="true" type="string" /> <cfargument name="str2" required="true" type="string" /> <cfreturn str1 & str2> </cffunction>

i guess adobe devs forgot apply pretty useless convention cfscript parser... because looks bug (it already filed, btw), really. can write , work:

writedump(variables)writedump(a & b)

kind of implicit semicolon function.

it worth mentioning railo went farther , made semicolons optional when single statement nowadays on line, work fine:

<cfscript> = "hello" b = "world" concat(a,b) writedump(a & b) writeoutput(a) </cfscript>

coldfusion coldfusion-9

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -