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

[ALLY] Getting 'elp to work on function inside object

From: al:bri:xtra at: 8-Sep-2000 22:06

I'm going Cockney about help. - Andrew Martin. ;-) john wrote:
> In general though I think there should be a more simple way of accessing
help for words defined in dialects. Dialect words can be defined nicely inside objects.
>> o: make object! [
[ f: func [ [ "A sample function in a dialect object." [ arg [word!] [ ][ [ print mold arg [ ] [ ]
>> help o
O is an object of value: make object! [ f: func [ "A sample function in a dialect object." arg [word!] ][ print mold arg ] ]
>> help o/f
o/f is a path Note the above is not helpful! Though understandable when the source for help is viewed.
>> z: get in o 'f >> help z
USAGE: Z arg DESCRIPTION: A sample function in a dialect object. Z is a function value. ARGUMENTS: arg -- (Type: word) Any one want to write up an alteration to 'help, so that it works with objects and functions in that object as a novice might expect? Andrew Martin Mercurial Rebolutionary... ICQ: 26227169 http://members.xoom.com/AndrewMartin/