[fpc-devel] Is -Sx supposed to be equivalent to {$modeswitch exceptions}?

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Aug 10 20:19:48 CEST 2010

On 10 Aug 2010, at 20:14, Bruce Bauman wrote:

> The compiler help message says that -Sx "Enables exception keywords",
> but if I use -Sx along with a try/except block I get:
> Error: identifier not found "try"
> If I instead use {$modeswitch exceptions} it works fine. (I'm compiling
> in FPC mode).
> Is this the expected behavior?

You probably have a {$mode xxx} statement in the source code. Changing the syntax mode resets all modeswitches to the default for that syntax mode (changing the syntax mode to a large extent consists of enabling/disabling a bunch of modeswitches).


More information about the fpc-devel mailing list