Suppose I want to use a socket, my inferior lisp program is SBCL, so I want to import several symbols from it, what I tried:
Code: Select all
(import 'sb-bsd-sockets:host-ent-address)
(import 'sb-bsd-sockets:get-host-by-name)
Code: Select all
(use-package :sb-bsd-sockets)
Code: Select all
(defun nslookup (hostname)
(if hostname
(sb-bsd-sockets:host-ent-address (sb-bsd-sockets:get-host-by-name hostname))
nil))
Code: Select all
(defun nslookup-1 (hostname)
(if hostname
(host-ent-address (get-host-by-name hostname))
nil))
Code: Select all
#'host-ent-address
#<STANDARD-GENERIC-FUNCTION HOST-ENT-ADDRESS (1)>
This must be something special about SLIME because the same code executed as a shell script or directly from interactive shell with SBCL running in it would work.
So, my question is: what's happening? How to "fix" it, of course
