[EMAIL PROTECTED] wrote:
> 
>> samef: func [f [any-function!]] [func [x] [f x]]
>
> 1. Is the samef expected to return a function? Hint: Yes
> 
> 2. Does it really return a function? Hint: No
> 

Doesn't it?  Depends on usage, IMHO.

    >> samef: func [f [any-function!]] [func [x] [f x]]
    >> type? (samef add1)
    ** Script Error: add1 is missing its i argument.
    ** Where: samef add1

Looks bad until we add some punctuation...

    >> type? (samef :add1)
    == function!

Alternately, we could let 'samef worry about the punctuation

    >> samef: func [:f [any-function!]] [func [x] [f x]]
    >> type? (samef add1)
    == function!

Or have I missed your point?

-jn-

Reply via email to