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.
10 lines
237 B
Scheme
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))
|