Re: [racket] duplicate/copy a namespace

2010-11-09 Thread Kevin Tew
I've been wanting to implement a fork-like feature for places where a new place is created as a clone of its parent. A deep namespace-copy could be useful in that scenario. On 11/08/2010 04:49 PM, Jay McCarthy wrote: Could namespaces be dicts and we could write dict-copy? Jay On Mon, Nov 8, 2

Re: [racket] duplicate/copy a namespace

2010-11-08 Thread Jay McCarthy
Could namespaces be dicts and we could write dict-copy? Jay On Mon, Nov 8, 2010 at 6:59 AM, Matthew Flatt wrote: > At Thu, 4 Nov 2010 17:10:31 -0700, YC wrote: >> is there a way to duplicate or copy a namespace?  It looks like I can use >> namespace-mapped-symbols, namespace-variable-value, and

Re: [racket] duplicate/copy a namespace

2010-11-08 Thread YC
On Mon, Nov 8, 2010 at 5:59 AM, Matthew Flatt wrote: > > I think you're right that there's currently no way to duplicate a > namespace. Maybe we could add additional reflective operations, but > it's easy to add too much in this space. > > Can you say more about how duplicating a namespace would

Re: [racket] duplicate/copy a namespace

2010-11-08 Thread Matthew Flatt
At Thu, 4 Nov 2010 17:10:31 -0700, YC wrote: > is there a way to duplicate or copy a namespace? It looks like I can use > namespace-mapped-symbols, namespace-variable-value, and > namespace-variable-set-value! to copy the results from one namespace to > another, but this only works for variables,

[racket] duplicate/copy a namespace

2010-11-04 Thread YC
Hi all - is there a way to duplicate or copy a namespace? It looks like I can use namespace-mapped-symbols, namespace-variable-value, and namespace-variable-set-value! to copy the results from one namespace to another, but this only works for variables, not syntaxes that resides in the source nam