Functions in Functions?

A user on cf-talk ran across an odd bug today. The error was:

Unable to complete CFML to Java translation.

What was the problem? He had simply tried to define a UDF inside a CFC method. This is not allowed. The same applies to trying to define a UDF inside another UDF. The fix was simple - move the UDF declaration outside the method.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support.

Lafayette, LA https://www.raymondcamden.com

Comments