Skip to content

Instantly share code, notes, and snippets.

@lsmag
Created January 27, 2022 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsmag/ebb517a8702f454c4bbf624d7c44b182 to your computer and use it in GitHub Desktop.
Save lsmag/ebb517a8702f454c4bbf624d7c44b182 to your computer and use it in GitHub Desktop.
; note: deleting unreachable code
;
; caught WARNING:
; Derived type of
; *DEFAULT-PATHNAME-DEFAULTS* and (TRUENAME (MERGE-PATHNAMES (FIRST ARGUMENT)))
; in
; "a hairy form"
; is
; (VALUES PATHNAME &OPTIONAL),
; conflicting with their asserted type
; STRING.
; See also:
; The SBCL Manual, Node "Handling of Types"
(defun init (argument options path)
(declare (ignore options path))
(let ((target-dir (if argument
(truename (merge-pathnames (first argument)))
*default-pathname-defaults*)))
(write-line target-dir))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment