[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: srfi-1 map implementation
From: |
Neil Jerram |
Subject: |
Re: srfi-1 map implementation |
Date: |
22 Jan 2002 22:35:46 +0000 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
>>>>> "Thien-Thi" == Thien-Thi Nguyen <address@hidden> writes:
Thien-Thi> From: Neil Jerram <address@hidden>
Thien-Thi> Date: 21 Jan 2002 19:45:31 +0000
Thien-Thi> What are you aiming to test by this use of procedure-source?
Thien-Thi> i'd like to test "primitive-definition?", i.e., whether or not
the
Thien-Thi> definition is provided by libguile.
Well, with the code as it is now, you could use
(define (primitive? proc)
(null? (procedure-environment proc)))
or
(define (primitive? proc)
(string-match "primitive"
(with-output-to-string
(lambda ()
(write proc)))))
Except that the procedure-environment one doesn't seem to be
reliable...
(primitive? nested-ref) => ()
Does everything defined in (guile) have procedure-environment => () ?
Neil
- 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 <=
- 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, 2002/01/28