Re: [racket-users] Weird test failures

2021-10-24 Thread 'Joel Dueck' via Racket Users
Dang it, I think you’re right. Known gotcha it is, and a rookie one at that. Thanks for taking time to look at it! On Sunday, October 24, 2021 at 1:04:03 PM UTC-5 Sage Gerard wrote: > I got all tests to pass by updating the first clause of pre-escape to use > equal? > > > (and (txexpr? x) (equa

Re: [racket-users] Weird test failures

2021-10-24 Thread Sage Gerard
I got all tests to pass by updating the first clause of pre-escape to use equal? > (and (txexpr? x) (equal? "text" (attr-ref x 'type #f))) My hypothesis is that when you didn't have bytecode, the reference to the literal string "text" just happened to be eq?. I couldn't say why. On 10/24/21 12:

[racket-users] Weird test failures

2021-10-24 Thread 'Joel Dueck' via Racket Users
This is driving me a little batty. I have a package on the package server, and the package server shows that it is failing some tests[1]. Here is the first test that fails: FAILURE name: check-equal? location: dust.rkt:101:2 actual: '(div (div ((type "text")) "Judy's friend \"Geor

[racket-users] Meta-Object Protocol (MOP) or Object System in Racket?

2021-10-24 Thread Jing Guo
Hi all, I recently came across the book "The Art of the Metaobject Protocol", which more or less describes a tiny version of the CLOS of Common Lisp. I looked up the Racket documentation but could not find much information about internal mechanisms. So I was wondering that if one does not count