guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add inspection command "source (, src)" which shows Scheme c


From: Daniel Hartwig
Subject: Re: [PATCH] Add inspection command "source (, src)" which shows Scheme code of loaded module
Date: Sun, 31 Mar 2013 08:33:56 +0800

On 31 March 2013 05:17, Mark H Weaver <address@hidden> wrote:
> Nala Ginrut <address@hidden> writes:
>> +
>> +(define (print-src p)
>> +  (define (get-program-src p)
>> +    (let ((source (program-source p 0)))
>> +      (cond
>> +       ((not source) "It's inner procedure implemented with C")
>
> I'm not sure we can conclude that the procedure is implemented in C just
> because 'program-source' returns #f.  There might be other reasons why
> that might happen.
>

Yes right, instead of trying to interpret the meaning and display a
message, returning ‘#f’ like e.g. ‘describe’ should be sufficient.
This is enough of a clue to indicate that the material is not
available.



reply via email to

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