[REBOL] Re: Speeding up code
From: joel:neely:fedex at: 13-Feb-2002 16:46
Hi, Sunanda,
Much good food for thought! I'll digest and reply more later,
but one quick thought ...
[SunandaDH--aol--com] wrote:
> ... And I don't know any easy way of getting help for a
> function embedded in an object --
>
>> foo: make object! [
[ blort: func [
[ {Do something obscure}
[ s [string!] {first arg}
[ n [number!] {second arg}
[ ][
[ n + length? s
[ ]
[ ]
>> gnudge: get in foo 'blort
>> help gnudge
USAGE:
GNUDGE s n
DESCRIPTION:
Do something obscure
GNUDGE is a function value.
ARGUMENTS:
s -- first arg (Type: string)
n -- second arg (Type: number)
>>
That certainly doesn't qualify as "any easy way" but it does
contain a hint for anyone who'd like to tackle writing a
HELP-METHOD function that does for object methods what HELP
does for "ordinary" functions...
-jn-