Re: [racket-dev] question on scribble/eval's do-plain-eval on bytes and strings

2012-04-02 Thread Danny Yoo
>> Would it be equivalent behavior to turn the datum into a syntax object >> instead?  That is: >> >>              ;; within do-plain-eval: >>              (cond [(syntax? s) >>                     (syntax-case s (module) >>                       [(module . _rest) (syntax->datum s)] >>            

Re: [racket-dev] question on scribble/eval's do-plain-eval on bytes and strings

2012-04-02 Thread Matthew Flatt
At Thu, 29 Mar 2012 11:25:37 -0400, Danny Yoo wrote: > I've traced the source of this "begin" down to the do-plain-eval > function in scribble/eval.rkt. > > ;; within do-plain-eval: > (cond [(syntax? s) > (syntax-case s (module) >

[racket-dev] question on scribble/eval's do-plain-eval on bytes and strings

2012-03-29 Thread Danny Yoo
Hi everyone, I'm running into some unexpected behavior with regards to how scribble/eval drives an evaluator in an @interaction. When I do something like this: @interaction[#:eval my-eval "foobar"] I see that my-eval is being fed an s-expression of the form: `(b