[REBOL] Bug? 'func not really 'func Re:(2)
From: al:bri:xtra at: 10-Oct-2000 1:55
Ladislav wrote:
> FYI Throw-on-error simply executes, that's all.
I realised that shortly after I sent my email. Thanks!
> zot2: func load mold third :func copy/deep second :func
>
> 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.
BTW, here's a patch for 'function, to add 'throw-on-error around it, like
'does and 'func have:
if not equal? second third :function [catch] [
function: func
head insert/only at load mold third :function 2 [catch]
compose/deep [
throw-on-error [
(copy/deep second :function)
]
]
]
Andrew Martin
Falling prey to hypos...
ICQ: 26227169
http://members.nbci.com/AndrewMartin/