unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* [bug #30469] `procedure-source' is broken in Guile 1.9.11
@ 2010-07-18  0:02 Patrick McCarty
       [not found] ` <20100719-192229.sv20118.15312@savannah.gnu.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick McCarty @ 2010-07-18  0:02 UTC (permalink / raw)
  To: Patrick McCarty, bug-guile


URL:
  <http://savannah.gnu.org/bugs/?30469>

                 Summary: `procedure-source' is broken in Guile 1.9.11
                 Project: Guile
            Submitted by: pnorcks
            Submitted on: Sat 17 Jul 2010 05:02:52 PM PDT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hello,

I am testing the latest git, and I think I've found a regression (compared to
1.8.7).  For a valid procedure definition, Guile returns `#f' for
`procedure-source':

  scheme@(guile-user)> (define (test a) (+ a 1))
  scheme@(guile-user)> (procedure-source test)
  $1 = #f
  scheme@(guile-user)>

The same procedure in Guile 1.8.7 returns valid info:

  guile> (define (test a) (+ a 1))
  guile> (procedure-source test)
  (lambda (a) (+ a 1))
  guile>




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?30469>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug #30469] `procedure-source' is broken in Guile 1.9.11
       [not found] ` <20100719-192229.sv20118.15312@savannah.gnu.org>
@ 2010-07-23 16:46   ` Patrick McCarty
  2011-02-13 19:05     ` Andy Wingo
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick McCarty @ 2010-07-23 16:46 UTC (permalink / raw)
  To: Andy Wingo, Patrick McCarty, bug-guile


Follow-up Comment #2, bug #30469 (project guile):

I discovered this while debugging a compile failure with LilyPond...

LilyPond's autogenerated documentation of its internal procedures uses
`procedure-source' to access the signature of a given procedure.

Would you recommend a different solution for this?  

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?30469>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug #30469] `procedure-source' is broken in Guile 1.9.11
  2010-07-23 16:46   ` Patrick McCarty
@ 2011-02-13 19:05     ` Andy Wingo
  0 siblings, 0 replies; 3+ messages in thread
From: Andy Wingo @ 2011-02-13 19:05 UTC (permalink / raw)
  To: Andy Wingo, Patrick McCarty, bug-guile

Follow-up Comment #3, bug #30469 (project guile):

Sorry it took so long to get back to you.  Use `procedure-arguments' from
(ice-9 session).  See its docstring for more details.

I'll leave this bug open until we decide to do something else with
procedure-source...

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?30469>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-13 19:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-18  0:02 [bug #30469] `procedure-source' is broken in Guile 1.9.11 Patrick McCarty
     [not found] ` <20100719-192229.sv20118.15312@savannah.gnu.org>
2010-07-23 16:46   ` Patrick McCarty
2011-02-13 19:05     ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).