[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Macro in a servlet
Hello,
I have a module; in that module, is a macro. That macro is
intended to be used in a servlet. I'd like the macro to reference the
'initial-request' that comes in to the servlet. However, I currently find
myself passing the 'initial-request' to the macro, while I'd rather it was
pulled from the environment of the servlet.
Currently, I'm doing something like
(define-sytax (foo stx)
(syntax-case stx ()
[(_ ir blah blah)
;; ^ my 'initial-request' variable
(syntax
(more ((blah blah)
(ho hum))
.... (do-stuff-with ir) ....))])))
in the module, where '....' should not be confused with the pattern
variable '...'. Then, I require that module in the servlet,
(require (lib "servlet-stuff")
(lib "foo-module" "some-collection"))
(unit/sig () (import servlet^)
....
(foo initial-request ....)
....
)
I'd rather not pass in the initial request.
Truly, the depths of my confusion are great.
Thanks,
Matt
(For those who are interested, this is related to the XML-RPC thread from
last week...)
________________________________________________________________________
Matt Jadud http://www.cs.indiana.edu/~mjadud/
Current Temperature Outside Lindley Hall 32.7 F / 0.4 C
Canterbury Weather: High 50 F / 10 C, Low 42 F / 6 C, Medium-level cloud