Hi Carl,

    >> p: first [()]
    == ()
    >> type? :p
    == paren!
    >> any-block? :p
    == true

Also,

    >> parse [a/b/c] [path!]
    == true
    >> parse [a/b/c] [into ['a 'b 'c]]
    == true
    >> any-block? first [a/b/c]
    == true
 
Maybe by design.

Regards,
Brett.

----- Original Message ----- 
From: "Carl Read" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 04, 2002 5:36 PM
Subject: [REBOL] Blocks and parens treated the same by parse's into?


> It's not mentioned in the Core Guide AFAIK, but parse's into word
> seems to treat parens as if they were blocks.  (Meaning in the input
> block).  Here's the standard format...
> 
> >> parse [1 ["a"]] [number! into [string!]]
> == true
> >> parse [1 [1]] [number! into [string!]]  
> == false
> 
> and here it is with the into blocks replaced by parens which seems to
> behave the same...
> 
> >> parse [1 ("a")] [number! into [string!]]
> == true
> >> parse [1 (1)] [number! into [string!]]  
> == false
> 
> Is this intended behaviour that's safe to use or should it be treated
> as an anomaly that may change in future versions of REBOL?
> 
> -- 
> Carl Read
> 
> -- 
> 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