diff options
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/code/demo.odin b/code/demo.odin index a3fee1555..34274cb22 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -5,12 +5,10 @@ #import "mem.odin"; #import "opengl.odin"; #import "os.odin"; -#import "utf8.odin"; +#import "halloc.odin"; main :: proc() { - x: f32 = false ? 123 : 55; - fmt.println("Ternary:", x); /* /* Version 0.1.1 @@ -29,6 +27,7 @@ main :: proc() { * immutable variables are "completely immutable" - rules need a full explanation * `slice_to_bytes` - convert any slice to a slice of bytes * `union_cast` allows for optional ok check + * ?: ternary operator Removed: * Maybe/option types |