Skip to content

Instantly share code, notes, and snippets.

@adamcameron
Created August 17, 2021 20:38
Show Gist options
  • Save adamcameron/938148fb5c1859fab1ada67d2489c137 to your computer and use it in GitHub Desktop.
Save adamcameron/938148fb5c1859fab1ada67d2489c137 to your computer and use it in GitHub Desktop.
More <cfexit> shenanigans
// Base.cfc
component {
writeOutput("Top of pseudo-constructor of #getMetadata(this).name#<br>")
exit;
writeOutput("Bottom of pseudo-constructor of #getMetadata(this).name#<br>")
function init() {
writeOutput("In #getMetadata(this).name#.#getFunctionCalledName()#<br>")
}
}
Top of testBase.cfm
Top of pseudo-constructor of test.exit.Base
In test.exit.Base.INIT
Bottom of testBase.cfm
Top of testBase.cfm
Top of pseudo-constructor of nonWheelsTests.exit.function.Base
<cfoutput>
Top of #getFileFromPath(getCurrentTemplatePath())#<br>
<cfset base = new Base()>
Bottom of #getFileFromPath(getCurrentTemplatePath())#<br>
</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment