Last active
January 2, 2016 15:09
-
-
Save gpickin/8321253 to your computer and use it in GitHub Desktop.
This file contains 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
<cfscript> | |
blah = stuff({key1='foo',key2='bar'}); | |
public boolean function stuff(struct mystruct) | |
{ | |
return structIsEmpty(arguments.mystruct); | |
} | |
/* | |
The above will throw an error (eventually, again, it's not always reproduceable. You'll just get a random CF | |
that: | |
a.) Doesn't make sense | |
b.) has nothing to do with the offending line. | |
c.) Doesn't compile correctly at all. | |
So, to fix it, you have to: | |
*/ | |
blah = {key1='foo',key2='bar'}; | |
blah = stuff(blah); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment