I don't think there is a better way than what you have.
I looked into the undocumented `reparameterize` procedure, from '#%paramz: [
https://github.com/racket/racket/blob/a6eb00a41cc29859424335f40ef9ae68c471c57a/racket/src/racket/src/thread.c#L7680],
but it only copies built-in parameters, so it fa
I see. Then, I'm sorry to say, I have no idea other than what you
already suggested.
On 1/12/2016 6:08 PM, Jos Koot wrote:
Your suggestion works,
but only for explicitly parameterized parameters.
There may be parameters that I don't know of,
but nevertheless may affect my protected-caller.
Ther
Your suggestion works,
but only for explicitly parameterized parameters.
There may be parameters that I don't know of,
but nevertheless may affect my protected-caller.
Therefore I want ALL parameters protected.
Thanks, Jos
-Original Message-
From: racket-users@googlegroups.com [mailto:rack
Can you use this instead?
(define (protected-caller thunk)
(parameterize ([p 'anything])
(thunk)))
Works for me
Jon
--
You received this message because you are subscribed to the Google Groups "Racket
Users" group.
To unsubscribe from this group and stop receiving emails from it, send a
On Tuesday, January 12, 2016 at 12:08:18 PM UTC-7, Jay McCarthy wrote:
> Great. In case Alex's email wasn't clear, you should be able to
> reinstall (remove and install again) and it will work on your older
> version (unless it doesn't work because of a problem that has been
> fixed since we moved
Great. In case Alex's email wasn't clear, you should be able to
reinstall (remove and install again) and it will work on your older
version (unless it doesn't work because of a problem that has been
fixed since we moved on from v6.2.1).
Jay
On Tue, Jan 12, 2016 at 2:07 PM, wrote:
> On Tuesday,
On Tuesday, January 12, 2016 at 8:32:13 AM UTC-7, Jay McCarthy wrote:
> Can you say what version of Racket you are using?
>
> `racket --version`
>
> will tell you
>
> Jay
>
> On Tue, Jan 12, 2016 at 10:25 AM, wrote:
> > Trying to run some of the default tests from pict3d (spaceship.rkt)
> >
On Tuesday, January 12, 2016 at 10:03:54 AM UTC-7, Alex Knauth wrote:
> I just added version exceptions for earlier versions of racket, pointing to a
> version that doesn't require racket/struct. So this should be fixed now.
>
> > On Jan 12, 2016, at 10:36 AM, Alex Knauth wrote:
> >
> > This is
I upgraded to OS X 10.11 (El Capitan), and now when I launch DrRacket
from the Dock, the "Scribble PDF" button cannot find the pdflatex
executable. Upgrades tend to mess things up but in this case
/usr/local/texbin no longer exists and cannot be created in the new OS.
It was a symlink to /usr/l
I just added version exceptions for earlier versions of racket, pointing to a
version that doesn't require racket/struct. So this should be fixed now.
> On Jan 12, 2016, at 10:36 AM, Alex Knauth wrote:
>
> This is because pict3d requires racket/struct, which was only added in racket
> version
This is because pict3d requires racket/struct, which was only added in racket
version 6.3. If you have an older version, you'll get this error.
There should probably be a version exception for older versions that doesn't
require racket/struct. Or would it be better to change pict3d to not rely
Can you say what version of Racket you are using?
`racket --version`
will tell you
Jay
On Tue, Jan 12, 2016 at 10:25 AM, wrote:
> Trying to run some of the default tests from pict3d (spaceship.rkt) resulted
> in this error. When I downloaded the pict3d package to Racket I got a lot of
> the
Trying to run some of the default tests from pict3d (spaceship.rkt) resulted in
this error. When I downloaded the pict3d package to Racket I got a lot of the
same (if I remember correctly) directory errors. Is this most likely from how I
installed racket to begin with? Ubuntu 14.04 LTS
-Thanks
#|
Hi,
Consider a procedure, say protected-caller,
that accepts a thunk and calls it,
but does not want any parameter or handler to be altered by the thunk.
Of course the called thunk can alter parameters and handlers for its own
use,
but I want all parameters and handlers reset after return from t
14 matches
Mail list logo