The documentation says that the on_warning flag works as on_error (i.e. that it accepts the three values print, halt and status) and that it has the default value print.
But current_prolog_flag(on_warning, Value) gives me warning.
Is this the same as print, only with a different name (and the doc is not up-to-date)?
Oddly though, if I set the flag to print it works, but when I try to set it again to warning it throws saying that the value is outside the domain of possible values.
(8.4.1 on x64-win64)