[REBOL] Bug? 'func not really 'func Re:
From: kgd03011:nifty:ne:jp at: 10-Oct-2000 20:01
>> Load Mold is needed instead of Copy/deep (I think, that you will find out
>I think I found out why:
>>> type? block!
>I am confused as to why 'copy seems to be evaluating the words in the block
>it's given. And also why it doesn't show up until after the function is put
COPY isn't evaluating the words in the block. The values in the "opt type"
subblocks of THIRD :FUNC are datatypes:
>> type? probe first fourth third :func
whereas FUNC usually needs words in those subblocks. If you don't have a
word there, the contents of those subblocks are treated as samples of the
>> cube: func [x [2 2.1]][x ** 3]
>> source cube
cube: func [x [integer! decimal!]][x ** 3]
LOAD MOLD, Ladislav's solution, converts the datatypes back to words.
Hope this makes some sense ...