Fix `define-inlinable' in SRFI-9 so that arguments are evaluated only once.
authorLudovic Courtès <ludo@gnu.org>
Fri, 11 Mar 2011 20:01:35 +0000 (21:01 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 11 Mar 2011 20:02:30 +0000 (21:02 +0100)
commitb075a6d766c2ffe7c575b63648d8ae0d51b5dd3a
tree222bd6b808ec0ee20048d8266ec2343006806ce4
parentbfb85df7084e26a276142cdc62315a85c7a0ba20
Fix `define-inlinable' in SRFI-9 so that arguments are evaluated only once.

* module/srfi/srfi-9.scm (define-inlinable): When inlining, evaluate the
  arguments only once.  Reported by Andreas Rottmann; thanks to Andy
  Wingo for the elegant solution.

* test-suite/tests/srfi-9.test ("side-effecting arguments"): New test
  prefix.
module/srfi/srfi-9.scm
test-suite/tests/srfi-9.test