jak-project/goalc/compiler
Tyler Wilding 98393c6f4c
goalc: support static arrays of types (#2140)
draft because using the array is a little weird still, don't feel like
dealing with window's slow debugging builds today.

I get the following weird error:
```clj
(define test-array (new 'static 'boxed-array :type type vector))
gr> (-> test-array 0)
1538004        #x1777d4              0.0000        vector
gr> (type? (-> test-array 0) type)
1342757        #x147d25              0.0000        #t
gr> (new 'static (-> test-array 0))
-- Compilation Error! --
Got 3 arguments, but expected 2
Form:
(-> test-array 0)
Location:
Program string:1
(new 'static (-> test-array 0))
^
Code:
(new 'static (-> test-array 0))
```

Maybe this is expected though and the `new` method wants a symbol, not a
type?

Fixes #2060

Co-authored-by: water <awaterford111445@gmail.com>
2023-01-21 21:40:39 -05:00
..
compilation goalc: support static arrays of types (#2140) 2023-01-21 21:40:39 -05:00
CodeGenerator.cpp [goalc] compile/run code for jak2 ckernel, set up dummy KERNEL.CGO (#1625) 2022-07-08 19:23:49 -04:00
CodeGenerator.h [goalc] compile/run code for jak2 ckernel, set up dummy KERNEL.CGO (#1625) 2022-07-08 19:23:49 -04:00
Compiler.cpp goalc/repl: cleanup of goalc/REPL code and some QoL improvements (#2104) 2023-01-07 11:24:02 -05:00
Compiler.h goalc/repl: cleanup of goalc/REPL code and some QoL improvements (#2104) 2023-01-07 11:24:02 -05:00
CompilerException.h Add some compiler features and documentation (#147) 2020-12-01 21:39:46 -05:00
CompilerSettings.cpp [jak2] support for multiple out/ directories (#1585) 2022-06-30 21:11:58 -04:00
CompilerSettings.h [jak2] support for multiple out/ directories (#1585) 2022-06-30 21:11:58 -04:00
ConstantValue.h lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
Env.cpp goalc/repl: Allow hot-loading files via ml with just the object name (#2036) 2022-11-29 19:22:22 -05:00
Env.h goalc/repl: Allow hot-loading files via ml with just the object name (#2036) 2022-11-29 19:22:22 -05:00
IR.cpp some bug fixes (#2125) 2023-01-14 11:04:15 -05:00
IR.h [decompile] subdivide, wind-work, tie-work, bsp, focus (#1897) 2022-09-17 14:58:25 -04:00
Label.h Add #pragma once to all headers 2020-09-13 21:36:35 -04:00
Lambda.h lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
StaticObject.cpp lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
StaticObject.h lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
SymbolInfo.h lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
Util.cpp goalc/repl: cleanup of goalc/REPL code and some QoL improvements (#2104) 2023-01-07 11:24:02 -05:00
Val.cpp lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
Val.h lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00