pokepay / aws-sdk-lisp

AWS-SDK for Common Lisp
87 stars 19 forks source link

Code generator for services needs an explicit :USE subform #12

Closed fiddlerwoaroof closed 1 year ago

fiddlerwoaroof commented 4 years ago

This DEFPACKAGE form generates potentially noncoforming code for the various services:

https://github.com/pokepay/aws-sdk-lisp/blob/7d3d0d2050f98d95aa9bed019fde3e78d9de7cb3/generator/service.lisp#L21-L25

As the standard says:

:use The arguments to :use set the packages that the package named by package-name will inherit from. If :use is not supplied, it defaults to the same implementation-dependent value as the :use argument to make-package.

To ensure that no packages are used, you have to do something like:

(defpackage ,package-name
  (:use))

http://www.lispworks.com/documentation/HyperSpec/Body/m_defpkg.htm#defpackage

This actually causes issues on lispworks.