- with
- This turns on one of the options: profile , profile_time , trace , warning or type_check . Options warning and type_check are initially on, while profile , profile_time and trace are initially off.
- without
- This turns off one of the above options.
You may only enable either profile or profile_time, but not both, for a given run of your program.
Unlike OpenEuphoria, settings can be changed mid-routine.
Note that "without warning strict" is an OpenEuphoria thing; Phix simply ignores the "strict", but will complain should any of the other 17 or so complex warning settings of OE be encountered. Phix also simply ignores attempts to set indirect_includes and inline, but currently displays an error for ifdef tags (with/without define).
Phix also allows with/without debug and (deprecated, see format) console/gui .
An included file inherits the with/without settings in effect at the point where it is included. An included file can change these settings, but they will revert back to their original state at the end of the included file. For instance, an included file might turn off warnings for itself and (initially) for any files that it includes, but this will not turn off warnings for the main file.