Re: [racket] Help with phases

2012-01-17 Thread Jon Rafkind
Yes that is my understanding. On 01/17/2012 01:43 AM, Veer Singh wrote: > Thanks , I think I understand it now , so roughly following steps > happens(apology for incorrect terminology) : > > 1. bind the identifier 'phases' to some val(a syntax transformer) in phase 1 > > i) during the above

Re: [racket] Help with phases

2012-01-17 Thread Veer Singh
Thanks , I think I understand it now , so roughly following steps happens(apology for incorrect terminology) : 1. bind the identifier 'phases' to some val(a syntax transformer) in phase 1 i) during the above step id 'phase2' is bound to some val i.e syntax transformer in phase 2 ii) (p

Re: [racket] Help with phases

2012-01-16 Thread Jon Rafkind
I'm guessing a little bit but I think its because the `phases' macro is expanded at phase 2 before `set-compile' is called. If you put (set-compile) before the definition of `phases' then you get '(1 2). On 01/17/2012 12:06 AM, Veer Singh wrote: > > Why macro call (phases) produces '(1 0) and no