pezi_pink
2017-1-6 17:51:21

@pezi_pink has joined the channel


pezi_pink
2017-1-6 17:55:44

hi all! I am new to Racket and struggling with something I hope you can help me with. I am doing some FFI stuff with the SDL wrappers. I am confused about what the _enum form is doing under the hood. I see it is passed a list of symbols which is going off and creating some stuff for in the background. I can use these symbols successfully as inputs to other FFI functions that are defined, but what I can’t work out how to do is test a given integer against one of these without resorting to the literal value of it. I tried the obvious things but nothing seems to be working. I guess I am missing something silly ..