Hi!
I've done a little, but usefull IMHO, patch for the 'help command.
Have you ever try to see the description of a function defined in an object
using the standart help ? When using objects a lot, you couldn't use the
auto-doc feature of 'help, because, it wasn't able to go inside an object!
Until now...;)
So, i write this patch to 'help to allow object introspection. 'Help on an
object will return its words, sub-objects and functions. Now, you can do
things like :
a: make object! [
c: func ["print a message"][ print "I'm c in a!" ]
b: make object! [
d: func ["read a web page" link [url!]][ print read link ]
e: 5
]
]
help a
help a/c
help a/b
help a/b/d
help a/b/e
You can even browse the system object with : help system :)
Try it on your own objects !
The RIP archive is in the attached file. Just save it on your rebol dir
and type : do %help-arc.rip on the command line. It will decompress the
archive and create 2 files :
help.r : the patch! (add do %help.r in your user.r!)
diff-help.html : a 2-colored source code of the patched 'help showing where
code was added (if someone want to improve the code, it would be easier...;))
Enjoy it!
DocKimbel.
help-arc.rip