Change ternary expression precedence

This commit is contained in:
Ginger Bill
2017-02-18 10:41:48 +00:00
parent 71100ed427
commit d2f9d20833
6 changed files with 271 additions and 197 deletions

View File

@@ -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