[REBOL] Bug? 'func not really 'func Re:
From: kgd03011:nifty:ne:jp at: 10-Oct-2000 20:01
Hi Andrew,
>> Load Mold is needed instead of Copy/deep (I think, that you will find out
>why)
>
>I think I found out why:
>
>>> type? block!
>== datatype!
>
>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
>together.
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
block!
== datatype!
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
datatype:
>> 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 ...
Eric