Re: ‘set-cdr!’ and weak-cdr pairs

2011-05-05 Thread Ludovic Courtès
Hello! Andy Wingo writes: > On Sun 27 Mar 2011 15:29, l...@gnu.org (Ludovic Courtès) writes: > >> Andy Wingo writes: >> >>> On Sun 13 Mar 2011 16:25, l...@gnu.org (Ludovic Courtès) writes: >>> The problem is that ‘hash-create-handle!’ above created a weak-cdr pair—i.e., a pair whose c

Re: ‘set-cdr!’ and weak-cdr pairs

2011-05-01 Thread Andy Wingo
Hi :) On Sun 27 Mar 2011 15:29, l...@gnu.org (Ludovic Courtès) writes: > Andy Wingo writes: > >> On Sun 13 Mar 2011 16:25, l...@gnu.org (Ludovic Courtès) writes: >> >>> The problem is that ‘hash-create-handle!’ above created a weak-cdr >>> pair—i.e., a pair whose cdr is /not/ scanned for pointer

Re: ‘set-cdr!’ and weak-cdr pairs

2011-03-27 Thread Ludovic Courtès
Hello! Andy Wingo writes: > On Sun 13 Mar 2011 16:25, l...@gnu.org (Ludovic Courtès) writes: > >> The problem is that ‘hash-create-handle!’ above created a weak-cdr >> pair—i.e., a pair whose cdr is /not/ scanned for pointers—but ‘set-cdr!’ >> did not register a disappearing link from O to K+V.

Re: ‘set-cdr!’ and weak-cdr pairs

2011-03-27 Thread Andy Wingo
On Sun 13 Mar 2011 16:25, l...@gnu.org (Ludovic Courtès) writes: > The problem is that ‘hash-create-handle!’ above created a weak-cdr > pair—i.e., a pair whose cdr is /not/ scanned for pointers—but ‘set-cdr!’ > did not register a disappearing link from O to K+V. Consequently, O > eventually gets

‘set-cdr!’ and weak-cdr pairs

2011-03-13 Thread Ludovic Courtès
Hello, A bit of explanation for commit ca33b501a93f8de389c1e3e1bc987f63b6912029... Try this: --8<---cut here---start->8--- (use-modules (srfi srfi-1) (srfi srfi-9)) (define-record-type (make-foo x) foo? (x foo-x)) (define register! (let