diff options
| author | LLLL Colonq <llll@colonq> | 2026-07-09 23:51:55 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-07-09 23:51:55 -0400 |
| commit | 2bdcaf319b1d74ffbaccf08a58336f804761beab (patch) | |
| tree | c21de6df74ec79b5574ad2b89fcc275d10847802 /pit/test/struct.lisp | |
Refactor into monorepo
Diffstat (limited to 'pit/test/struct.lisp')
| -rw-r--r-- | pit/test/struct.lisp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pit/test/struct.lisp b/pit/test/struct.lisp new file mode 100644 index 0000000..9e35654 --- /dev/null +++ b/pit/test/struct.lisp @@ -0,0 +1,11 @@ +(defstruct! foo + x + y + z) + +(setq! x (foo/new :y 10 :x 5 :z 111)) +(print! x) +(print! (foo/get-y x)) +(foo/set-y! x 42) +(print! (foo/get-y x)) +(print! (foo/get-z x)) |
