[plt-scheme] How to get the source of procedure?
Would it be accurate to say that this only works when the modules are
explicitly imported? For instance, I have a little piece of code that
relies on the fact that the MrEd functionality is already included in the
Graphical language; right clicking on for instance the "send" procedure
doesn't offer to jump to a definition. I seem to have to have an explicit
importation of class.ss to do that. Is there any way to get this
functionality for any built-in function in any context?
On Tue, 16 May 2006, [ISO-8859-1] Jens Axel Søgaard wrote:
> Jaime Vargas wrote:
> > Thanks all for the replies. I am interested on source code inspection
> > from the point of view of understanding how a particular procedure was
> > implemented. I understand than on relying on the implementation of
> > procedure may breaks the contract. However, I think that inspecting is
> > good for learning.
>
> If you are looking for the source of a library function DrScheme
> is your friend. Consider:
>
> (module foo mzscheme
> (require (lib "md5.scm"))
> (define bar (md5 1 2)))
>
> To find the source of md5 hit "Check Syntax", then
> right click at md5 and choose "Jump to definition".
>
> If you prefer a web-interface to the source see
> <http://ja.soegaard.net/planet/html/>
>
> Of particular interest is the collection "mzlib".
>
> --
> Jens Axel Søgaard
>
>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>