|
@@ -25,6 +25,25 @@ Global Counter:Int
|
|
|
Function DoSomething( x:int,y:Int )
|
|
|
```
|
|
|
|
|
|
+You can declare the following inside extern blocks:
|
|
|
+
|
|
|
+* Consts
|
|
|
+
|
|
|
+* Globals
|
|
|
+
|
|
|
+* Structs
|
|
|
+
|
|
|
+* Classes
|
|
|
+
|
|
|
+* Functions
|
|
|
+
|
|
|
+
|
|
|
+You cannot declare the following inside extern blocks:
|
|
|
+
|
|
|
+* Generic functions or types
|
|
|
+
|
|
|
+* Operator methods
|
|
|
+
|
|
|
|
|
|
#### Extern symbols
|
|
|
|
|
@@ -44,7 +63,6 @@ Class Actor="mylib::Actor"
|
|
|
End
|
|
|
```
|
|
|
|
|
|
-
|
|
|
#### Extern classes
|
|
|
|
|
|
Extern classes are assumed by default to be *real* monkey2 classes - that is, they must extend the native bbObject class.
|