Load.program takes forms: it reads the import forms, resolves them with the one resolver it always had, and parses the file with the packages' macros in front of it. The refusal said this needed a second import resolver at the Form level. It did not notice that the file being compiled is parsed before Load runs too, so no shape of the feature could have left import resolution where it was. Names arrive qualified, as a defn's do. (mac/twice 4) is a call and (twice 4) is an unknown name. Stopped mid-task: dune test was never run and the acceptance wiring is unfinished. HANDOFF-macros.md has what is left.
8 lines
139 B
Plaintext
8 lines
139 B
Plaintext
;;;; The ring refusal, with the macros coming from a package. Never built.
|
|
|
|
(import r "pkgs/macring")
|
|
|
|
(defn main [] i32
|
|
(r/ping 1)
|
|
0)
|