29 Nov
2013
29 Nov
'13
12:30 p.m.
Hi Jean-Marc,
Note : processor instructions might not be relevant for XQuery, since interpreters are heavily optimized.
Dito.
2) Could you confirm that BaseX interpreter will not try to interpret "dead" code ?
If you want to see what’s going on under the hood, simply check out the output from the InfoView panel (or the query info with -V on command line). The following query… declare variable $DEBUG := true(); if($DEBUG) then <A/> else <B/> will e. g. be simplified to <A/>. This means that all constants will indeed be pre-evaluated at compile time. Hope this helps, Christian