diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-20 21:54:12 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-20 21:54:12 -0400 |
commit | e6893fe38972d2869042413a70601e6e40e0c6ab (patch) | |
tree | c41a6316b7f39b65077253e247907357a55e656d /test.toc | |
parent | 1da7e2ba082c491ea63d518b67b45d31f64f3fec (diff) |
mostly fixed compile time new
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -6,13 +6,16 @@ // }; foo @= fn() int { - // X := new([100]int); - i := 0; - while i < 100 { + X := new([100]int,5); + asdf : [100]int; + (*(&asdf))[5] = 12; + + + // i := 0; + // while i < 100 { // (*X)[i] = i; - i = i + 1; - } - i + // i = i + 1; + // } // total := 0; // i = 0; // while i < 100 { @@ -20,6 +23,7 @@ foo @= fn() int { // i = i + 1; // } // total + asdf[5] }; main @= fn() { |