Created
March 24, 2014 23:24
-
-
Save bennadel/9751529 to your computer and use it in GitHub Desktop.
Destroying ColdFusion Variables Using JavaCast()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- Create the objFoo variable. ---> | |
<cfset objFoo = StructNew() /> | |
<cfset objFoo.Bar = "Well Played!" /> | |
<!--- Destroy struct via JavaCast(). ---> | |
<cfset objFoo = JavaCast( "null", 0 ) /> | |
<!--- Dump out variable. ---> | |
<cfdump var="#objFoo#" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- Create the objFoo variable. ---> | |
<cfset objFoo = StructNew() /> | |
<cfset objFoo.Bar = "Well Played!" /> | |
<!--- Destroy key via JavaCast(). ---> | |
<cfset objFoo.Bar = JavaCast( "null", 0 ) /> | |
<!--- Dump out variable. ---> | |
<cfdump var="#objFoo#" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment