mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-21 05:05:00 -07:00
Allow _ in floats
This commit is contained in:
+7
-7
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user