mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
`require' gets all bindings, not just functions.
Also, explain the ' use.
This commit is contained in:
parent
c11ec1f137
commit
8f295f4e68
@ -436,8 +436,8 @@ vec ; => #(1 2 3 4)
|
|||||||
(printf fmt (make-string n ch))
|
(printf fmt (make-string n ch))
|
||||||
(newline)))
|
(newline)))
|
||||||
|
|
||||||
;; Use `require' to import all functions from the module
|
;; Use `require' to get all `provide'd names from a module
|
||||||
(require 'cake)
|
(require 'cake) ; the ' is for a local submodule
|
||||||
(print-cake 3)
|
(print-cake 3)
|
||||||
; (show "~a" 1 #\A) ; => error, `show' was not exported
|
; (show "~a" 1 #\A) ; => error, `show' was not exported
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user