-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged branch 'feature/fields' into 'master'.
- Loading branch information
Showing
122 changed files
with
2,894 additions
and
2,694 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Standard.Io; | ||
import VariableExample.MyClass; | ||
|
||
module VariableExample.Main; | ||
|
||
function main () | ||
{ | ||
Io.writeLine(MyClass.doFunctionThings()); | ||
|
||
let myClass := new MyClass(); | ||
|
||
Io.writeLine(myClass.doMethodThings()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
class VariableExample.MyClass; | ||
|
||
constant moduleConstant: String := 'moduleConstant'; | ||
variable moduleVariable: String := 'moduleVariable'; | ||
|
||
field fieldConstant: String := 'fieldConstant'; | ||
field variable fieldVariable: String := 'fieldVariable'; | ||
|
||
function doFunctionThings (): String | ||
{ | ||
let localConstant := moduleVariable; | ||
|
||
return localConstant; | ||
} | ||
|
||
method doMethodThings (): String | ||
{ | ||
let variable localVariable := fieldVariable; | ||
localVariable := fieldConstant; | ||
|
||
return localVariable; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.