September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
6
Task/Enumerations/Zkl/enumerations-1.zkl
Normal file
6
Task/Enumerations/Zkl/enumerations-1.zkl
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
const RGB_COLOR{ // put color names in a name space
|
||||
const RED =0xf00;
|
||||
const BLUE=0x0f0, GREEN = 0x00f;
|
||||
const CYAN=BLUE + GREEN; // → 0x0ff
|
||||
}
|
||||
println(RGB_COLOR.BLUE);
|
||||
4
Task/Enumerations/Zkl/enumerations-2.zkl
Normal file
4
Task/Enumerations/Zkl/enumerations-2.zkl
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
const X0=N; // --> 0
|
||||
const A=N,B=N,C=N; // --> 1,2,3
|
||||
const{ _n=-1; } // reset Enum, this should be a const space function
|
||||
const X=N; // -->0
|
||||
3
Task/Enumerations/Zkl/enumerations-3.zkl
Normal file
3
Task/Enumerations/Zkl/enumerations-3.zkl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#continuing ...
|
||||
z:=N; // -->2 NOT 1 as it is set AFTER Y (compile time vs parse time)
|
||||
const Y=N; // -->1! because it is set before z
|
||||
Loading…
Add table
Add a link
Reference in a new issue