This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Ignorance as to how (write) works



telford@eng.uts.edu.au writes:
> 
> Also, can I take f and apply some procedure to it that fetches back
> '(A B C) from the procedure. It must be stored in there somewhere...
> I guess what I am saying is, can you convert a procedure object
> back into it's equivalent list object?
> 

Yes, but not with `write' as far as I know; you can use
`procedure-source' to get a list representation of the procedure's
source.


> Should I be looking in R4RS about this (I did have a look but couldn't
> find it anywhere).
> 

No, there's no standard way of getting the source of a procedure.

 - Maciej