mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Updated cast syntax in code samples.
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
const char AA = ~cast(0 as char);
|
||||
const char AA = ~(char)(0);
|
||||
const char BB = 200 ;
|
||||
const uint CC = ~cast(0 as uint);
|
||||
const uint CC = ~(uint)(0);
|
||||
const uint DD = FOO;
|
||||
|
||||
const FOO = ~cast(0 as uint);
|
||||
const FOO = ~(uint)(0);
|
||||
|
||||
uint x = AA;
|
||||
uint z = CC;
|
||||
char w = cast(FOO as char);
|
||||
ushort v = cast(FOO as ushort);
|
||||
char w = (char)(FOO);
|
||||
ushort v = (ushort)(FOO);
|
||||
uint z2 = DD;
|
||||
|
||||
func void test()
|
||||
|
||||
Reference in New Issue
Block a user