pocmatos
2017-2-20 19:33:44

@samth I don’t get how to use define-local-member-name. Do you have an example? If I use it inside a class before define/public of the method I want to make local, it says duplicate definition. If I use outside, it doesn’t work.


samth
2017-2-20 19:33:56

you want to use it outside


pocmatos
2017-2-20 19:35:21

Maybe I just don’t understand how it works but this doesn’t work: #lang racket (define-local-member-name test) (define foo% (class object% (define/public (test) (printf "foo")) (super-new)))


pocmatos
2017-2-20 19:36:19

Ah, maybe it works from the repl but not if I import the module. doh. let me test it.


samth
2017-2-20 19:37:12

pocmatos
2017-2-20 19:39:33

Yes, I got it, thanks. :slightly_smiling_face: