Re: Immutable rnrs hashtable

2012-11-26 Thread Ludovic Courtès
Hi! Ian Price skribis: > Whoops, in my haste, I forgot to note that this _is_ a bug in guile's > documentation, not in the implementation. Suggested fix included. Good catch, please push! > Ludovic, Andy: > Should I add him to THANKS too? That’s a good idea in general, yes. Ludo’.

Re: Immutable rnrs hashtable

2012-11-26 Thread Sjoerd van Leent Privé
Hi Ian, Thanks for the suggestions. I will certainly have a look at those. I believe the bbtrees can come in handy. Can certainly give it a go. Sjoerd On 11/26/2012 11:28 AM, Ian Price wrote: Sjoerd van Leent Privé writes: Btw, isn't their a hashtable which is more pure in it's implementa

Re: Immutable rnrs hashtable

2012-11-26 Thread Ian Price
Sjoerd van Leent Privé writes: > Btw, isn't their a hashtable which is more pure in it's > implementation? The RNRS and SRFI-69 versions are having quite some > side-effects. I would have expected a method like "hashtable-add" > which copies an existing hashtable, adds values and returns a new >

Re: Immutable rnrs hashtable

2012-11-26 Thread Sjoerd van Leent Privé
Hi Ian, The implementation is okay, I wrote a half baked example, as I understood the bit to be the mutable field. But it should act in reverse. Got it. In many cases, I use info-lookup-symbol in Guile's documentation, as it is much easier to navigate than the RNRS website (which I consider b

Re: Immutable rnrs hashtable

2012-11-25 Thread Ian Price
Whoops, in my haste, I forgot to note that this _is_ a bug in guile's documentation, not in the implementation. Suggested fix included. Ludovic, Andy: Should I add him to THANKS too? -- Ian Price -- shift-reset.com "Programming is like pinball. The reward for doing it well is the opportunity t

Re: Immutable rnrs hashtable

2012-11-25 Thread Ian Price
Sjoerd van Leent Priv$(D+1(B writes: > Hi all, > > I might have found an issue using commit > 06906f370f77cbab520ff0d3c47449526934a9c8 (stable-2.0). I am attempting > to do a hashtable-copy using rnrs hashtables, and set the mutable flag > to #:t (according to documentation this should make it

Immutable rnrs hashtable

2012-11-25 Thread Sjoerd van Leent Privé
Hi all, I might have found an issue using commit 06906f370f77cbab520ff0d3c47449526934a9c8 (stable-2.0). I am attempting to do a hashtable-copy using rnrs hashtables, and set the mutable flag to #:t (according to documentation this should make it immutable, a bit odd). I attempted #:f as well.