aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-03-02 19:24:34 +0000
committerGinger Bill <bill@gingerbill.org>2017-03-02 19:24:34 +0000
commit9e8c9be1ea825c2b5c66e62724519ae9ab8ab8f6 (patch)
tree2d199c849c7a1d25c533bd96fe1abe883cf00454 /code
parent9bc37f44002d89ed35643b2bfd8c384cb5ff1f48 (diff)
Allow pointers to `append`; Fix strconv stuff; `new_slice` allows for capacity
Diffstat (limited to 'code')
-rw-r--r--code/demo.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/demo.odin b/code/demo.odin
index 8162fc0d3..2d03e2ec7 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -6,6 +6,7 @@
#import "opengl.odin";
#import "os.odin";
#import "strconv.odin";
+#import "sync.odin";
main :: proc() {
// buf: [64]byte;
@@ -15,8 +16,7 @@ main :: proc() {
// fmt.println(s);
// fmt.printf("%3d\n", 102);
- a: [10]int;
- s := a[..0];
+ s := new_slice(int, 0, 10);
append(s, 1, 2, 6, 3, 6, 5, 5, 5, 5, 1, 2);
fmt.println(s);