From 2b47c650a161fe2c2c4c7f4d74a19c2c6fe6021e Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Fri, 13 Feb 2026 17:32:00 -0500 Subject: Update --- struct.lisp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 struct.lisp (limited to 'struct.lisp') diff --git a/struct.lisp b/struct.lisp new file mode 100644 index 0000000..9e35654 --- /dev/null +++ b/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)) -- cgit v1.2.3