[racket-users] Namespaces and phases

2016-09-23 Thread Rohin Shah
Hi, I've been trying to create a namespace and then import it at a different phase, but I can't get it to work. Basically, it seems like an issue with the base phase of a namespace being set by the module that is requiring it, rather than the module that it is in. Is there a way to get around

Re: [racket-users] syntax-properties, local-expand, and a struct

2016-09-23 Thread Ryan Culpepper
On 09/23/2016 02:43 PM, 'William J. Bowman' via Racket Users wrote: Under certain conditions, the value of a syntax property is duplicated. I can't figure out why, or if this is a bug, and any advice would be appreciated. I've attached the smallest program that generates this behavior that

[racket-users] syntax-properties, local-expand, and a struct

2016-09-23 Thread 'William J. Bowman' via Racket Users
Under certain conditions, the value of a syntax property is duplicated. I can't figure out why, or if this is a bug, and any advice would be appreciated. I've attached the smallest program that generates this behavior that I've managed to find. The conditions seem to be: 1. Write a syntax

Re: [racket-users] Is there a predefined (define-runtime-path "this_file")?

2016-09-23 Thread David Storrs
Brilliant. Thanks, Alex. On Fri, Sep 23, 2016 at 8:15 AM, Alex Knauth wrote: > > > On Sep 23, 2016, at 10:53 AM, David Storrs > wrote: > > > > Is there a Racket equivalent of Perl's __FILE__ token? > > Yes, it's called `quote-source-file`, in

Re: [racket-users] puzzled by date / date*

2016-09-23 Thread Geoffrey Knauth
On Friday, September 23, 2016 at 12:41:46 AM UTC-4, johnbclements wrote: > doesn’t ‘find-seconds’ do that? > > #lang racket > > (require racket/date) > > (define d1 (find-seconds 0 51 14 22 9 2016 #f)) It does indeed. Perfect, thank you! -- You received this message because you are

Re: [racket-users] Is there a predefined (define-runtime-path "this_file")?

2016-09-23 Thread Alex Knauth
> On Sep 23, 2016, at 10:53 AM, David Storrs wrote: > > Is there a Racket equivalent of Perl's __FILE__ token? Yes, it's called `quote-source-file`, in syntax/location.

[racket-users] Is there a predefined (define-runtime-path "this_file")?

2016-09-23 Thread David Storrs
Is there a Racket equivalent of Perl's __FILE__ token? In Perl I can do this: I'd like to be able to access files at runtime that have a path known in relation to the current file. I can do this: (define-runtime-path this-dir ".") (file-exists? (build-path this-dir

Re: [racket-users] [ANN] New package: live-free-or-die

2016-09-23 Thread Matthias Felleisen
Well, now that our youngsters have easily debunked the package, we can let it die because it no longer wants to live. > On Sep 22, 2016, at 10:30 PM, Leif Andersen wrote: > > > Also, with typed/racket/unsafe the optimizer *is* still run, so that's not > > any