[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-
- [REBOL] Non-reentrant function calling in Rebol Re: icimjs
- [REBOL] Non-reentrant function calling in Rebol Re:(2) lmecir
- [REBOL] Non-reentrant function calling in Rebol Re:(... icimjs
- [REBOL] Non-reentrant function calling in Rebol ... lmecir
- [REBOL] Non-reentrant function calling in Re... icimjs
- [REBOL] Non-reentrant function calling ... lmecir
- [REBOL] Non-reentrant function call... icimjs
- [REBOL] Non-reentrant function call... lmecir
- [REBOL] Non-reentrant function call... icimjs
- [REBOL] Non-reentrant function call... lmecir
- [REBOL] Non-functions in Rebol joel . neely
- [REBOL] Non-functions in Rebol lmecir
- [REBOL] Non-reentrant function call... jeff
- [REBOL] Non-reentrant function call... lmecir
- [REBOL] Non-reentrant function call... giesse
- [REBOL] Non-reentrant function call... lmecir
- [REBOL] Non-reentrant function call... giesse
- [REBOL] Non-reentrant function call... joel . neely
- [REBOL] Re: Non-reentrant function calling in Rebol giesse
