christian.a.romney
2019-4-16 11:09:33

@christian.a.romney has joined the channel


matias
2019-4-16 20:00:09

hm, is there a generic interface to making pict-convertibles? Or are we stuck with structure properties?


matias
2019-4-16 20:05:02

Also, are there any good guide or tutorials on using framework to make GUI applications? I’ve been looking around it’s documentation but I’m a little unsure how all these pieces fit together.


soegaard2
2019-4-16 20:05:57

@matias Take a look at Alex’ blog: https://alex-hhh.github.io/tags/racket.html



florence
2019-4-16 21:02:30

@matias there is not. (tho i see that you might have opened a PR for one a year or so ago? https://github.com/racket/pict/pull/46 )


florence
2019-4-16 21:07:09

(FWIW that PR is just missing docs and some tests I think)


leif
2019-4-16 22:09:36

@mflatt Is there any case where the datum in syntax-binding-set->syntax does not need to match the symbol in syntax-binding-set-extend? The docs seem to indicate that it just leads to a differently named syntax object (like, say, with rename-in), but whenever I do that identifier-binding just returns that the syntax is unbound.


leif
2019-4-16 22:10:21

For example:

(identifier-binding
  (syntax-binding-set->syntax
   (syntax-binding-set-extend
    (syntax-binding-set)
    'foo
    0
    (module-path-index-join #f #f))
   'foo))

returns '(#<module-path-index> foo #<module-path-index> foo 0 0 0)


leif
2019-4-16 22:10:34

but replace the second foo with bar results in a #f.


lexi.lambda
2019-4-16 22:14:30

@leif It could be relevant if the lexical information of the resulting syntax object is copied onto a different datum using datum->syntax.


lexi.lambda
2019-4-16 22:14:52

Otherwise I don’t think it does anything, no.


leif
2019-4-16 22:18:50

@lexi.lambda Oh, so something like this?:

(datum->syntax
 (syntax-binding-set->syntax
  (syntax-binding-set-extend
   (syntax-binding-set)
   'foo
   0
   (module-path-index-join #f #f))
  'bar)
 'foo)

Odd, but okay, thanks.


lexi.lambda
2019-4-16 22:19:52

Yes, that’s right.


matias
2019-4-16 23:18:31

oh yeah… I knew this felt familiar. :wink:


matias
2019-4-16 23:18:36

I suppose I should get on that…


notjack
2019-4-16 23:54:12

Whoa, I did not realize that syntax-binding-set was a thing. That’s been around since 7.1 (ish)?