Files
sex/tests/modules/shelf-app.sex
alex-eg e835d39f58 look for an import beside the file it is written in
Imports were looked for from the unit's directory, so a module in a
subdirectory could not import its neighbours: a pub import failed, a
private one lost its handle declarations, and --public-interface changed
with where sexc ran.
2026-10-19 21:52:43 +03:00

10 lines
237 B
Scheme

(include stdio.h)
(import shelf/book)
(pub fn main () int
(var b book #(book : NULL #(page : 1)))
(printf "pages %d %d\n"
(. (second-page (& b)) number)
(. (page-after (second-page (& b))) number))
(return 0))