To-word in this case is setting the word in the global context as well.

Regards,
Brett.

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 14, 2002 10:12 AM
Subject: [REBOL] Re: to-block bug?


> 
> >  why a fails and b works
> 
> That should be "b" fails and "a" works.
> 
> Note also that the following function works:
> 
> to-blk: function [string] [blk] [
>      blk: copy []
>      foreach token parse string "" [append blk to-word token]
>      return blk
> ]
> 
> >> c: to-blk "btn green"
> == [btn green]
> >> view layout c
> 
> 
> Regards,
> 
>      Ashley
> 
> -- 
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the 
> subject, without the quotes.
> 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to