diff options
author | Andy Wingo <wingo@pobox.com> | 2011-10-21 00:22:44 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-10-21 00:22:50 +0200 |
commit | 13d807b7d36594676c5aa683c595eca8dbe26b57 (patch) | |
tree | edab2395c5f0795c5a49e9aa190b45a837406c37 /module/system/repl/command.scm | |
parent | aa9c19858872a135ea959066fff26f86527a1bd0 (diff) | |
download | guile-13d807b7d36594676c5aa683c595eca8dbe26b57.tar.gz |
fix segfault in goops if class fields are redefined
* libguile/goops.c (map, filter_cpl, remove_duplicate_slots): Use
scm_is_pair instead of !scm_is_null, given that we use accessor
macros.
(check_cpl, build_slots_list): Check that descendents of <class> can't
redefine slots of <class>.
* test-suite/tests/goops.test ("defining classes"): Add a test.
Patch originally by Stefan Israelsson Tampe.
Diffstat (limited to 'module/system/repl/command.scm')
0 files changed, 0 insertions, 0 deletions