Show/Hide Toolbars

XSharp

The -enforceself compiler option allows you to control if you can access members of the SELF objects with or without the SELF: prefix.
In Visual Objects and most other original languages this was not allowed. This is equivalent to /enforceself+. In .Net the default is that this is allowed. This is equivalent to /enforceself-.

The effect of this is that the compiler may report an ambiguity when a method exists with the same name as a built in function. If you enable /enforceself then the compiler "knows" that without the SELF: prefix you intend to call the function.

Syntax

-enforceself[+ | -]

Arguments

+ | - Specifying +, or just -

To set this compiler option in the Visual Studio development environment:

 

1.Open the project's Properties page.

2.Click the Language tab.

3.Change the value.

4.Click here to see the property page