Improve error checking in 'define-public' and 'module-add!'.
authorMark H Weaver <mhw@netris.org>
Mon, 19 Aug 2013 23:30:42 +0000 (19:30 -0400)
committerMark H Weaver <mhw@netris.org>
Tue, 20 Aug 2013 00:02:50 +0000 (20:02 -0400)
commitdf3acd296e7149630fd6030aced6331ae6dd424b
tree6dd0267339755ebb162ba0681fd59f0eb8c386db
parent1fcf690929d3cd5221f4fe95ed79f356be382a43
Improve error checking in 'define-public' and 'module-add!'.

* module/ice-9/boot-9.scm (module-add!): Check that the symbol argument
  is actually a symbol.
  (define-public): Expand into 'define' in such a way that curried
  definitions will immediately fail.
module/ice-9/boot-9.scm