Allow _ in floats

This commit is contained in:
Ginger Bill
2017-01-29 23:13:50 +00:00
parent 9e143a38ce
commit 0ca1b4612c
4 changed files with 101 additions and 27 deletions
+7 -7
View File
@@ -1,13 +1,13 @@
#import "fmt.odin";
main :: proc() {
foo :: proc() -> [dynamic]int {
x: [dynamic]int;
append(^x, 2, 3, 5, 7);
return x;
}
x: [dynamic]f64;
defer free(x);
append(^x, 2_000_000.500_000, 3, 5, 7);
for p in foo() {
fmt.println(p);
for p, i in x {
if i > 0 { fmt.print(", "); }
fmt.print(p);
}
fmt.println();
}