[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: srfi-1 map implementation
From: |
Marius Vollmer |
Subject: |
Re: srfi-1 map implementation |
Date: |
28 Jan 2002 19:44:27 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
Martin Grabmueller <address@hidden> writes:
> > I'd say that for the specific case, the best thing is to get the real
> > primitive function (via 'module-ref' for example) and compare it with
> > 'eq?' to the one you are worried about.
> >
> > Like
> >
> > (define primitive-map (module-ref (resolve-module '(guile)) 'map))
> >
> > (if (eq? map primitive-map)
> > ...)
>
> This would not work if the `map' in module (guile) was `set!' to a
> different value, would it?
Depends on the definition of "work"... If you want to test whether
your 'map' is the same as the 'map in the (guile) module, it would
work, if you would want to test whether your 'map' is a primitive
procedure, it wouldn't. I think Thien-Thi wants the former, right?
- srfi-1 map implementation, Panagiotis Vossos, 2002/01/20
- Re: srfi-1 map implementation, Panagiotis Vossos, 2002/01/20
- Re: srfi-1 map implementation, Thien-Thi Nguyen, 2002/01/20
- Re: srfi-1 map implementation, Neil Jerram, 2002/01/21
- Re: srfi-1 map implementation, Thien-Thi Nguyen, 2002/01/21
- Re: srfi-1 map implementation, Neil Jerram, 2002/01/22
- Re: srfi-1 map implementation, Marius Vollmer, 2002/01/24
- Re: srfi-1 map implementation, Martin Grabmueller, 2002/01/28
- Re: srfi-1 map implementation,
Marius Vollmer <=