[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: srfi-1 map implementation
From: |
Martin Grabmueller |
Subject: |
Re: srfi-1 map implementation |
Date: |
Mon, 28 Jan 2002 10:11:40 +0100 |
> From: Marius Vollmer <address@hidden>
> Date: 24 Jan 2002 22:05:14 +0100
>
> Thien-Thi Nguyen <address@hidden> writes:
>
> > i'd like to test "primitive-definition?", i.e., whether or not the
> > definition is provided by libguile.
>
> 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?
'martin
- 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 <=
- Re: srfi-1 map implementation, Marius Vollmer, 2002/01/28