Re: [racket-dev] Running into phase-error issues

2011-08-15 Thread Matthew Flatt
At Sun, 14 Aug 2011 23:32:48 -0400, Danny Yoo wrote: > Yes! Here's the problem I'm trying to solve: I'm trying to attach > information to a module, and then be able to query for that > information without running the module. That makes sense. The `dynamic-require-for-syntax' function was intende

Re: [racket-dev] Running into phase-error issues

2011-08-14 Thread Carl Eastlund
I've run into the same issue. The way I sometimes to it is to eval code which requires the original module for syntax, extracts the value during macro expansion, and produces an expression that quotes it (or an expression that reconstructs it, if not an s-expression). Carl Eastlund On Sun, Aug

Re: [racket-dev] Running into phase-error issues

2011-08-14 Thread Danny Yoo
>> I'm running into some problem when using dynamic-require-for-syntax: > > I imagine the problem is that `dynamic-require-for-syntax' is broken, > but I hope to get rid of that function because it implements bad > phase-crossing behavior. > > So, although it doesn't directly address the problem, c

Re: [racket-dev] Running into phase-error issues

2011-08-14 Thread Matthew Flatt
At Sun, 14 Aug 2011 19:46:46 -0400, Danny Yoo wrote: > I'm running into some problem when using dynamic-require-for-syntax: I imagine the problem is that `dynamic-require-for-syntax' is broken, but I hope to get rid of that function because it implements bad phase-crossing behavior. So, although

[racket-dev] Running into phase-error issues

2011-08-14 Thread Danny Yoo
I'm running into some problem when using dynamic-require-for-syntax: if the module I'm requiring itself requires another module, I inevitably hit the following error: ;;; dyo