Ok, I think I've got it, but just to make sure I'm not missing any
subtleties, or else for the benefit of posterity, here's the version with
thread cells.
In "common.rkt":
#lang racket
(provide my-val
call-with-my-val)
(define cell:my-val
(make-thread-cell #f #t))
(define (my-val)
On Thu, Jun 22, 2017 at 10:21 AM, Philip McGrath
wrote:
> I've come up with a (relatively) minimal example.
>
> In "common.rkt":
>>
>> #lang racket
>> (provide my-param)
>> (define my-param
>> (make-parameter #f))
>
>
> In "servlet.rkt":
>>
>> #lang web-server
>> (require "common.rkt")
>> (provi
I've come up with a (relatively) minimal example.
In "common.rkt":
> #lang racket
> (provide my-param)
> (define my-param
> (make-parameter #f))
In "servlet.rkt":
> #lang web-server
> (require "common.rkt")
> (provide start)
> (define (start req)
> (response/xexpr
>`(html (head (title
Hi Philip,
I think I'd have to see more code to really tell what the problem is,
but here are some thoughts:
- A continuation captures the values of parameters at the time it is
captured. So, if your parameterize is outside of the dispatcher that
calls the continuation, then the code inside the c
I'm encountering some strange behavior when using parameters with my
(stateless) web servlets.
I want to check the value of a cookie every time a request is made to my
server and make a Racket value derived from the cookie's value available
for use within the servlet code. Since this value shouldn
5 matches
Mail list logo