jscl icon indicating copy to clipboard operation
jscl copied to clipboard

Use portable common LISP

Open HenryS1 opened this issue 6 years ago • 2 comments

JSCL uses some SBCL specific functions. It looks like it's only a two calls to sb-posix:getenv in toplevel.lisp (lines 266 and 267). If that's all it is then I don't think it'll be hard to make the implementation portable, but it requires a bit more investigation.

HenryS1 avatar May 06 '18 12:05 HenryS1

What if we create a impl.lisp file and put every usage of implementation-specific functions there?

Like

(defun getenv (name)
  #+sbcl (sb-posix:getenv "...")
  )

Then it would be pretty easy to port them to other implementations.

davazp avatar May 06 '18 19:05 davazp

Agreed, that looks like the right approach to take.

HenryS1 avatar May 06 '18 19:05 HenryS1