Tips that make life of a software engineer easier.
Well, not exactly. Some posts are open questions that I haven't found an answer ... yet
Monday, February 23, 2015
CFScript bug?
An extra semicolon at the end of "if" block is causing a lot of head scratching for me recently. Please see the code snippet below.
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
Due to the lack of specifications for CFScript language, I cannot tell if this grammar is even allowed. But I can tell you this: the journey of discovering and finding the root cause of this problem is not fun at all!
Symptom
CFScript fall through the "if-else" statement, and did not return to caller from the expected branch.
Cause
An extra semicolon at the end of a block is the root cause.
No comments:
Post a Comment