guile-user
[Top][All Lists]
Advanced

[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: 24 Jan 2002 22:05:14 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

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)
        ...)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]