Ok. Thanks.

> On Dec 8, 2020, at 6:47 PM, Robby Findler <[email protected]> wrote:
> 
> Right, it is probably both things. I ran your program on yesterday's git 
> build and it still returns #false, but for the mutability reason, not the bug 
> that Jon mentioned.
> 
> Robby
> 
> 
> On Tue, Dec 8, 2020 at 6:45 PM Nathaniel W Griswold <[email protected]> 
> wrote:
> I think it is something more. The copied set is giving completely different 
> elements. If i loop over the copied set i get 32 values from 0 to like 31, 
> when i have in fact added 1000 random elements to the original set before 
> copying.
> 
> Nate
> 
> > On Dec 8, 2020, at 6:43 PM, Robby Findler <[email protected]> wrote:
> > 
> > No, I don't think that's it. The issue is that one is a mutable set and the 
> > other isn't, so they aren't equal (even if their elements aren't equal).
> > 
> > > (equal? (mutable-seteqv) (list->seteqv '()))
> > #f
> > 
> > Maybe you wanted to call list->mutable-seteqv? Or maybe just start with an 
> > immutable set?
> > 
> > Robby
> > 
> > 
> > On Tue, Dec 8, 2020 at 6:40 PM Nathaniel W Griswold <[email protected]> 
> > wrote:
> > Thanks. Switching to 7.9 now.
> > 
> > Nate
> > 
> > > On Dec 8, 2020, at 6:38 PM, Jon Zeppieri <[email protected]> wrote:
> > > 
> > > I think that's this bug
> > > [https://github.com/racket/racket/commit/543dab59640fa5e911443baaadaae471406dbf40],
> > > which should be fixed in 7.9. - Jon
> > > 
> > > On Tue, Dec 8, 2020 at 7:19 PM Nathaniel W Griswold
> > > <[email protected]> wrote:
> > >> 
> > >> I don’t know if i’m missing something or what, but the following is 
> > >> confusing me:
> > >> 
> > >> (let ([test (mutable-seteqv)])
> > >>  (for* ([i (in-range 1000)]
> > >>         [j (random 0 1000)])
> > >>    (set-add! test j))
> > >>  (let ([test-copy (set-copy test)])
> > >>    (printf "test-copy=~a\n" (set->list test-copy))
> > >>    (printf "Equal from stream is ~a\n" (equal? (list->seteqv (set->list 
> > >> test-copy)) test))))
> > >> 
> > >> prints something like:
> > >> test-copy=(31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 
> > >> 11 10 9 8 7 6 5 4 3 2 1 0)
> > >> Equal from stream is #f
> > >> Equal regular is #t
> > >> 
> > >> 
> > >> Why is this?
> > >> 
> > >> Thanks
> > >> 
> > >> Nate
> > >> 
> > >> --
> > >> You received this message because you are subscribed to the Google 
> > >> Groups "Racket Users" group.
> > >> To unsubscribe from this group and stop receiving emails from it, send 
> > >> an email to [email protected].
> > >> To view this discussion on the web visit 
> > >> https://groups.google.com/d/msgid/racket-users/ED9A219D-41D8-42BF-9C67-9887ADFB268B%40manicmind.earth.
> > 
> > -- 
> > You received this message because you are subscribed to the Google Groups 
> > "Racket Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to [email protected].
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msgid/racket-users/B11A3C69-794C-4E45-8C56-311DEB07164C%40manicmind.earth.
> > 
> > -- 
> > You received this message because you are subscribed to the Google Groups 
> > "Racket Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to [email protected].
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msgid/racket-users/CAL3TdON3V6Qrq3U2xdemoxYzpgXUkDhRsBT3gN%3DYHjZ8aCFfgg%40mail.gmail.com.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/0AED1D31-2FE2-4637-908D-D57808D55CFB%40manicmind.earth.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/7189B3B3-9DD4-4A91-BB82-417D5808263B%40manicmind.earth.

Reply via email to