1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-11 06:20:23 +02:00
guile/module
Andreas Rottmann 531c9f1dc5 Don't mix definitions and expressions in SRFI-9
The expansion of `define-inlinable' contained an expression, which made
SRFI-9's `define-record-type' fail in non-toplevel contexts ("definition
used in expression context").

* module/srfi/srfi-9.scm (define-inlinable): Get rid of apparently
  useless expression in the expansion, so the expansion yields only
  definitions.  At the same time, use a space in the generated names to
  lessen the chances of name conflicts, also avoiding -Wunused-toplevel
  warnings.
* test-suite/tests/srfi-9.test (non-toplevel): New test verifying that
  `define-record-type' works in non-toplevel context as well.
* doc/ref/srfi-modules.texi (SRFI-9 - define-record-type): Add
  subsubsection noting that Guile does not enforce top-levelness.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2011-03-09 21:36:54 +01:00
..
ice-9 Within while', continue' takes zero arguments 2011-03-08 18:18:36 -05:00
language Handle letrec*' like letrec' in simple cases. 2011-03-06 23:05:01 +01:00
oop Allow GOOPS getters to add methods to primitive generics 2011-02-14 20:33:11 +01:00
rnrs Make `(rnrs base)' independent of other rnrs modules. 2011-02-22 00:32:39 +01:00
scripts Add `*current-warning-prefix*'. 2011-02-13 19:13:36 +01:00
srfi Don't mix definitions and expressions in SRFI-9 2011-03-09 21:36:54 +01:00
sxml sxml->xml fix 2010-12-02 22:24:26 +01:00
system repl: terminal-width by default 2011-03-04 11:16:15 +01:00
texinfo stexi->shtml supports itemx 2011-01-25 17:59:45 +01:00
web web server more assiduous about closing ports 2011-02-24 11:10:49 +01:00
Makefile.am add ice-9 eval-string 2011-03-05 23:16:11 +01:00
rnrs.scm implement port-eof? 2011-01-21 08:27:08 +01:00
statprof.scm remove a number of debug options 2010-09-24 20:57:01 +02:00
texinfo.scm Remove unused top-level variables. 2010-01-11 01:21:14 +01:00