<technomancy>
I've brought it in with (include "keycodes.scm") and I have a symbol; I want to know if the symbol is one of the ones defined in that file
<technomancy>
I guess it doesn't have to be in the current module; I could load keycodes.scm as its own module as long as I don't have to add any racket-specific forms to the file indicating to export all key-* definitions
<samth>
can you do this with a macro at expansion time? that will work (see `identifier-binding`). but at runtime there's no notion of "current module"
<technomancy>
(it's based on user input but it's not an arbitrary string; just a single keycode from (send event get-key-code))
N0S4A2 has joined #racket
<technomancy>
I could also open keycodes.scm and reduce over its list of forms to build up a hash-map but that's a lot more work than a 4-line function
<technomancy>
anyway if anyone gives me crap about this I'll be like "I asked on IRC and they said eval was OK" thanks yall =D
dataangel has joined #racket
<dataangel>
With racket can I create a custom s-exp based #lang that doesn't contain expose any of the racket primitives, but that still lets you use regular racket in the same source file for defining macros? Basically I want to have my own runtime language but want to use racket as my compile time language
badkins has joined #racket
<samth>
dataangel: yes, just provide `racket` `for-syntax`
zmt00 has quit [Read error: Connection reset by peer]
zmt00 has joined #racket
tfeb has joined #racket
aeth has quit [Ping timeout: 250 seconds]
aeth has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 250 seconds]
badkins has joined #racket
elioat has joined #racket
efm has quit [Read error: Connection reset by peer]
efm has joined #racket
efm has quit [Ping timeout: 250 seconds]
efm has joined #racket
Lowl3v3l has quit [Remote host closed the connection]
Lowl3v3l has joined #racket
Codaraxis__ has joined #racket
Codaraxis has quit [Ping timeout: 264 seconds]
cartwright has quit [Ping timeout: 240 seconds]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
cartwright has joined #racket
tilpner_ has joined #racket
tilpner has quit [Ping timeout: 256 seconds]
tilpner_ is now known as tilpner
badkins has quit [Ping timeout: 264 seconds]
rgherdt has quit [Ping timeout: 240 seconds]
badkins has joined #racket
FreeFull has joined #racket
rgherdt has joined #racket
jellie has quit [Ping timeout: 264 seconds]
efm has quit [Ping timeout: 258 seconds]
efm has joined #racket
doyougnu has quit [Ping timeout: 240 seconds]
elioat has quit [Quit: WeeChat 1.9.1]
tfeb has quit [Remote host closed the connection]
tfeb has joined #racket
tfeb has quit [Client Quit]
narimiran has quit [Ping timeout: 240 seconds]
badkins has quit [Remote host closed the connection]
rgherdt has quit [Ping timeout: 246 seconds]
evdubs has quit [Remote host closed the connection]
evdubs has joined #racket
<technomancy>
anyone know why my handle-key callback on a canvas% will trigger for ctrl and shift but not super or alt?
cartwright has quit [Ping timeout: 240 seconds]
cartwright has joined #racket
libertyprime has joined #racket
badkins has joined #racket
<technomancy>
I'm writing a transparent struct out to a file with `write'; when I read it back with `read' I get a vector instead of a struct; what am I doing wrong?
<technomancy>
hm; I guess I can vector->list it and apply the cdr to the struct constructor function? seems like I must be misunderstanding something tho