1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-28 16:00:22 +02:00
guile/module
Andy Wingo 48ad85fb56 Fix foreign slot initialization and access
* libguile/goops.c (scm_sys_initialize_object): Refactor initialization
  so that we don't ref uninitialized slots before initializing them.
  This allows foreign slots, whose initial value is 0, to be initialized
  via #:init-form.

* module/oop/goops.scm (@slot-ref, @slot-set!): Remove definitions.
  Change callers to use struct-ref and struct-set!.  slot-ref and
  slot-set! were only marginally more efficient and were much more
  dangerous.  This change allows the standard accessors to work on
  foreign slots; that was not the case before, as the 'u' fields of the
  struct were read as if they were 'p' slots.
* module/language/tree-il/compile-glil.scm (lambda): Remove support for
  compiling @slot-ref/@slot-set!.  These were private to GOOPS.

* test-suite/tests/goops.test ("active-slot"): Update to not expect a
  ref before initialization.
  ("foreign slots"): Add tests.
2014-04-27 11:02:35 +02:00
..
ice-9 Make sure 'ftw' allows directory traversal when running as root. 2014-02-20 22:57:26 +01:00
language Fix foreign slot initialization and access 2014-04-27 11:02:35 +02:00
oop Fix foreign slot initialization and access 2014-04-27 11:02:35 +02:00
rnrs Fix (rnrs io simple) to open file ports in textual mode. 2014-03-19 23:36:46 -04:00
scripts Make snarfing tools more robust to varied C preprocessor behavior. 2014-03-06 17:25:55 -05:00
srfi Calculate usecs correctly in thread-sleep! 2014-03-23 21:58:54 +01:00
sxml Remove duplicate definitions of call/ec' and let/ec'. 2013-04-06 15:40:19 +02:00
system Support weak vectors, arrays, and bitvectors in (system base types). 2014-04-24 18:22:04 -04:00
texinfo Improve correctness and consistency of 'eval-when' usage. 2014-01-23 10:41:22 -05:00
web Write out HTTP Basic auth headers correctly. 2014-01-21 16:11:04 -05:00
Makefile.am Add (system base types). 2014-02-18 23:04:30 +01:00
rnrs.scm Add missing R6RS `open-file-input/output-port' procedure 2012-11-12 20:47:57 +01:00
statprof.scm add gcprof 2011-05-05 11:43:12 +02:00
texinfo.scm Fix newline preservation in @example with lines beginning with @ 2014-03-17 21:49:16 +01:00