⇦ Back to Janet API Survey

*current-file* (keyword)

*current-file* is bound to the keyword :current-file—it provides a global alias to the dynamic binding containing the path of the currently compiling file.

repl> (root-env '*current-file*)
@{:doc "Bound to the name of the currently compiling file."
  :dyn true
  :source-map ("boot.janet" 1343 1)
  :value :current-file}

Things I Learned

Created: