Skip to content

Instantly share code, notes, and snippets.

@gpickin
Last active January 2, 2016 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gpickin/8321253 to your computer and use it in GitHub Desktop.
Save gpickin/8321253 to your computer and use it in GitHub Desktop.
<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