Tip - Force Compile All to Check Your Code

Monkey Forums/Monkey Programming/Tip - Force Compile All to Check Your Code

therevills(Posted 2012) [#1]
If you write heaps of code and want to ensure that it all compiles successfully you can now add "Import reflection" at the top of your file and when you compile, it will compile the entire project, not just the parts you are currently using.

For example:


If you remove the reflection module, this is will compile fine because we are not using Bar yet. But if you want to make sure Bar works without using it, just add reflection and when you compile it will throw a compile error:
Compile Error
Identifier 'y' not found.



ziggy(Posted 2012) [#2]
I LOVE IT.