Re: [racket-users] Calling a procedure without allowing it to permanently alter parameters.

2016-01-12 Thread Jon Zeppieri
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

Re: [racket-users] Calling a procedure without allowing it to permanently alter parameters.

2016-01-12 Thread jon stenerson
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

RE: [racket-users] Calling a procedure without allowing it to permanently alter parameters.

2016-01-12 Thread Jos Koot
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

Re: [racket-users] Calling a procedure without allowing it to permanently alter parameters.

2016-01-12 Thread jon stenerson
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

Re: [racket-users] Pict3d general Racket help

2016-01-12 Thread bre2159732
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

Re: [racket-users] Pict3d general Racket help

2016-01-12 Thread Jay McCarthy
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,

Re: [racket-users] Pict3d general Racket help

2016-01-12 Thread bre2159732
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) > >

Re: [racket-users] Pict3d general Racket help

2016-01-12 Thread bre2159732
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

[racket-users] Scribble PDF button on OS X 10.11

2016-01-12 Thread Prabhakar Ragde
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

Re: [racket-users] Pict3d general Racket help

2016-01-12 Thread Alex Knauth
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

Re: [racket-users] Pict3d general Racket help

2016-01-12 Thread Alex Knauth
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

Re: [racket-users] Pict3d general Racket help

2016-01-12 Thread Jay McCarthy
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

[racket-users] Pict3d general Racket help

2016-01-12 Thread bre2159732
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

[racket-users] Calling a procedure without allowing it to permanently alter parameters.

2016-01-12 Thread Jos Koot
#| 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