[Laszlo-dev] Compile-time conditionals [Was: [Laszlo-checkins] r14652 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml]
P T Withington
ptw at pobox.com
Wed Sep 2 04:22:07 PDT 2009
What André said is important. You can't mix compile- and run-time
conditionals:
> + if ($debug && xmlDom == null) {
> + Debug.error('Could not instantiate a XML DOM
> ActiveXObject');
> + }
This statement will not be optimized out of non-debug. You have to say:
if ($debug) {
if (xmlDom == null) {
Debug.error('Could not instantiate a XML DOM ActiveXObject');
}
}
More information about the Laszlo-dev
mailing list