-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hello, it appears encoder does try to look up the package in the index, but I cannot get it to work. I intend to use cl-conspack for RPC and it would be nice if package is not transmitted all the time with the symbols. Perhaps passing package object instead of its name in #'encode-symbol might be a bug.
CL-USER> (cpk:encode 'a)
#(130 64 1 65 129 64 16 67 79 77 77 79 78 45 76 73 83 80 45 85 83 69 82)
CL-USER> (cpk:with-index (a) (cpk:encode 'a))
#(176)
;; This is fine!!!
;; But trying to index package, no cigar:
CL-USER> (cpk:with-index (common-lisp-user) (cpk:encode 'a))
#(130 64 1 65 129 64 16 67 79 77 77 79 78 45 76 73 83 80 45 85 83 69 82)
CL-USER> (cpk:with-index (:common-lisp-user) (cpk:encode 'a))
#(130 64 1 65 129 64 16 67 79 77 77 79 78 45 76 73 83 80 45 85 83 69 82)
CL-USER> (cpk:with-index ((symbol-package 'a)) (cpk:encode 'a))
#(130 64 1 65 129 64 16 67 79 77 77 79 78 45 76 73 83 80 45 85 83 69 82)
;;Even tried to paste the object using SLIME to no avail:
CL-USER> (cpk:with-index ( #<PACKAGE "COMMON-LISP-USER"> ) (cpk:encode 'a))
#(130 64 1 65 129 64 16 67 79 77 77 79 78 45 76 73 83 80 45 85 83 69 82)
Metadata
Metadata
Assignees
Labels
No labels