diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-02-18 10:41:48 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-02-18 10:41:48 +0000 |
| commit | d2f9d208330e692f29a2b48dce62a9c5bcab6031 (patch) | |
| tree | 814604ce923e63d8a4c19e9a4c6483e943730597 /code | |
| parent | 71100ed427ee2eec8d8a9d4d9616102738097e80 (diff) | |
Change ternary expression precedence
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 |