mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-17 16:38:14 +03:00
starting work on array
This commit is contained in:
parent
e5e0d5e44c
commit
1d70a5daac
3
.gitignore
vendored
3
.gitignore
vendored
@ -9,4 +9,5 @@
|
||||
a.out
|
||||
/bin/Debug/
|
||||
/bin/Release/
|
||||
/build/
|
||||
/build/
|
||||
/exe
|
||||
|
15
lisp/array.carp
Normal file
15
lisp/array.carp
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
;; The generic, built in array.
|
||||
|
||||
|
||||
(defmacro total-size [count]
|
||||
(* count 4))
|
||||
|
||||
|
||||
(register-builtin "array-new-internal" '(:int) (gen-typevar))
|
||||
|
||||
(defn single-item-array [item]
|
||||
(let [a (array-new-internal 1)]
|
||||
))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user