aws-sdk-lisp icon indicating copy to clipboard operation
aws-sdk-lisp copied to clipboard

Code generator for services needs an explicit :USE subform

Open fiddlerwoaroof opened this issue 6 years ago • 0 comments

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.

fiddlerwoaroof avatar Oct 04 '19 01:10 fiddlerwoaroof