Re: [Chicken-users] how to unintern a symbol

2015-02-02 Thread Peter Bex
On Mon, Feb 02, 2015 at 11:34:05AM -0800, Dan Leslie wrote: Is that a function composition function I spy? I wasn't aware of such a thing in R5RS or R7RS, is it a chicken extension or a part of one of the Unity libraries? It's a CHICKEN extension :) There's also compose for when the

Re: [Chicken-users] how to unintern a symbol

2015-02-02 Thread cowan
Peter Bex scripsit: I wasn't aware of that CL behaviour. IIUC that's actually conflating two different things: creating an uninterned symbol and unbinding an interned symbol. I don't know of a way to unbind a variable through Scheme, but you can set the symbol's value slot (0) to

Re: [Chicken-users] how to unintern a symbol

2015-02-02 Thread Peter Bex
On Mon, Feb 02, 2015 at 10:51:26AM -0700, Alexej Magura wrote: Does Chicken have anything comparable to Common Lisp's /unintern/? I thought that it might be under /##sys/, since other features present in Common Lisp, but absent in Chicken are available under that namespace, but it doesn't seem

Re: [Chicken-users] how to unintern a symbol

2015-02-02 Thread Alexej Magura
AFAICT that just defines a symbol to itself, and only then if you run: (define foo 1) (define foo (unintern 'foo)) (eq? foo |foo|) = #t But, as I said, that only defines 'foo as |foo|: it doesn't /undefine/ the symbol, and it needs to have side-effects, since the CL /unintern/ AFAIK effects

[Chicken-users] how to unintern a symbol

2015-02-02 Thread Alexej Magura
Does Chicken have anything comparable to Common Lisp's /unintern/? I thought that it might be under /##sys/, since other features present in Common Lisp, but absent in Chicken are available under that namespace, but it doesn't seem to be provided by that module/namespace.

Re: [Chicken-users] how to unintern a symbol

2015-02-02 Thread Peter Bex
On Mon, Feb 02, 2015 at 11:55:12AM -0700, Alexej Magura wrote: AFAICT that just defines a symbol to itself, and only then if you run: (define foo 1) (define foo (unintern 'foo)) (eq? foo |foo|) = #t But, as I said, that only defines 'foo as |foo|: it doesn't /undefine/ the symbol, and it

Re: [Chicken-users] how to unintern a symbol

2015-02-02 Thread Dan Leslie
Is that a function composition function I spy? I wasn't aware of such a thing in R5RS or R7RS, is it a chicken extension or a part of one of the Unity libraries? Thanks! -Dan Peter Bex pe...@more-magic.net writes: On Mon, Feb 02, 2015 at 10:51:26AM -0700, Alexej Magura wrote: Does Chicken