|
@@ -1247,19 +1247,17 @@ There are three Levels of encapsulation for class and struct members:
|
|
|
|
|
|
-`Protected` members can only be accessed by the base class and the derived ones or by class/struct extensions. Code existing in the same source file have acces to `Protected` members too.
|
|
-`Protected` members can only be accessed by the base class and the derived ones or by class/struct extensions. Code existing in the same source file have acces to `Protected` members too.
|
|
|
|
|
|
-`Private` members can only be accessed by the base class. Code existing in the same source file have acces to `Private` members too.
|
|
|
|
|
|
+-`Private` members can only be accessed by the base class. Code existing in the same source file have acces to `Private` members too.
|
|
|
|
|
|
example:
|
|
example:
|
|
```
|
|
```
|
|
Class Foo
|
|
Class Foo
|
|
-
|
|
|
|
'public by default'
|
|
'public by default'
|
|
Field i:Int
|
|
Field i:Int
|
|
|
|
|
|
Protected
|
|
Protected
|
|
|
|
|
|
Field someProtectedThing:Int
|
|
Field someProtectedThing:Int
|
|
-
|
|
|
|
Method doSomething()
|
|
Method doSomething()
|
|
Print "Doing something"
|
|
Print "Doing something"
|
|
End
|
|
End
|
|
@@ -1267,7 +1265,6 @@ Class Foo
|
|
Private
|
|
Private
|
|
|
|
|
|
Field _somePrivateThing:String
|
|
Field _somePrivateThing:String
|
|
-
|
|
|
|
End
|
|
End
|
|
```
|
|
```
|
|
|
|
|
|
@@ -1282,7 +1279,7 @@ Preprocessor expressions may only use the 'And', 'Or' and comparison operators.
|
|
The following symbols may be used in preprocessor expressions:
|
|
The following symbols may be used in preprocessor expressions:
|
|
|
|
|
|
| Symbol | Type | Meaning
|
|
| Symbol | Type | Meaning
|
|
-|:------------------|:----------|--------
|
|
|
|
|
|
+|:----------------------|:------|:--------------------------------------------:
|
|
| \_\_TARGET\_\_ | String | The current build target. One of: "windows", "macos", "linux", "android", "ios", "emscripten"
|
|
| \_\_TARGET\_\_ | String | The current build target. One of: "windows", "macos", "linux", "android", "ios", "emscripten"
|
|
| \_\_CONFIG\_\_ | String | The current build config. One of: "release", "debug"
|
|
| \_\_CONFIG\_\_ | String | The current build config. One of: "release", "debug"
|
|
| \_\_DESKTOP\_TARGET\_\_ | Bool | True if the current build target is windows, macos or linux.
|
|
| \_\_DESKTOP\_TARGET\_\_ | Bool | True if the current build target is windows, macos or linux.
|
|
@@ -1307,7 +1304,6 @@ Print "This code is only include in desktop and mobile builds."
|
|
#Endif
|
|
#Endif
|
|
```
|
|
```
|
|
|
|
|
|
-
|
|
|
|
### Reflection
|
|
### Reflection
|
|
|
|
|
|
#### Typeof and TypeInfo
|
|
#### Typeof and TypeInfo
|
|
@@ -1676,6 +1672,13 @@ Hexadecimal numbers can be entered using the $ symbol
|
|
Local i:=$A0F
|
|
Local i:=$A0F
|
|
```
|
|
```
|
|
|
|
|
|
|
|
+#### Inline Code comments
|
|
|
|
+
|
|
|
|
+Inline comments can be done with the `'` character.
|
|
|
|
+```
|
|
|
|
+Print "hello!" 'this line prints hello on the output console
|
|
|
|
+```
|
|
|
|
+
|
|
# Articles and Tutorials
|
|
# Articles and Tutorials
|
|
|
|
|
|
### Operator Overloading
|
|
### Operator Overloading
|