Subject: Re: getting a full symbol name
From: Erik Naggum <>
Date: 2000/04/19
Newsgroups: comp.lang.lisp
Message-ID: <>

* "Marc Battyani" <>
| what is the easiest way to get a full symbol name ie "package::name"?

(let ((*package* (find-package :keyword))
  (write-to-string object :readably t)))

| is there a format directive for this?

(defun fqsn (stream object colon-p atsign-p &rest format-args)
  (declare (ignore colon-p atsign-p format-args))
  (let ((*package* (find-package :keyword))
    (write object :stream stream :readably t))))

  now there is.  fqsn stands for fully qualified symbol name.

(format nil "~/fqsn/" <symbol>)