Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: how to call HELP on an object method ?

From: nitsch-lists:netcologne at: 24-May-2003 3:54

Marc Meurrens wrote:
>Hello all, > >I want to document properly my REBOL objects... >But is it easely usable? >
Yes :)
>Any idea on how to call HELP on an object method ??? > >f1: function [ "help on f1" ][][ print "I am f1" ] >help f1 >o: make object! [ > m1: function [ "help on m1" ][][ print "I am m1" ] >] >;;;;; help o/m1 ;;; how to do this ???? o/m1 is a path .... >
?>> o: make object! [ [ m1: function [ "help on m1" ][][ print "I am m1" ] [ ] ?>> ?>> help o ; <<<< :) :) O is an object of value: m1 function! help on m1 If you have nested objects, or really want help for only that function, ;make object-path[help word-in-object] ?>> make system/view[help vid]
>I can of course do: >o: make object! [ > help-m1: does [ help m1 ] m1: function ["help on m1"][][ print "I am m1" ] >] >o/help-m1 > >but this is not very neat... >not very standard... >and this forces to add an additional help method for each documented method.... > >Any idea ? >I found nothing in the nice FAQ's maintened by some of you... > >Thanks... >Regards, > ></marc> > >Prof. Ir Marc Meurrens, Brussels (be) >TEL: +32 (0)2 537 2812 >FAX: +32 (0)2 537 7645 >EMAIL: [marc--meurrens--org] >URL: http://www.meurrens.org/ >REB: http://rebol.mksa.net/ >PGPKEY: http://www.meurrens.org/pgp/ >Please don't mail me attached files, instead, use my 'exchange area' : >EXCHANGE AREA: http://www.meurrens.org/exchange/ >(HTTP/FTP upload/download of temporary/persistent files) >
-Volker