Just to throw in some more commentary from "the boys" :-) :

  The /only refinement is used for more than just referring to
  nested blocks. It means to consider the item in question as
  a single series type, instead of as a bunch of separate
  items. Change/only means to apply the changes as a single
  series, and not as individual items, for example:

 >> ser: ["str1" "str2" "str3"]
 >> change ser [1 2]

 >> ser 
 == [1 2 "str3"]

 ;-- CHANGE took the 1 and 2 and applied the change
 ;   to ser like two separate changes. 

 >> ser: ["str1" "str2" "str3"]
 >> change/only ser [1 2]

 >> ser
 == [[1 2] "str2" "str3"]
 

 ;-- Change/only took the [1 2] and thought of it as a single
 ;   value which it changed the first value of ser to. 

  The /only refinement is like saying "There's ONLY one value
  here, not many values".

  "Deep" really is very different. 


  -jeff


> Thought you would like to hear what "the  boys" have to say
> about /deep versus /only
> 
> 
> --------- Forwarded Message ---------
> 
> DATE: Mon,  28  Aug 2000 17:21:39  From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> 
> 
> princepawn,
> 
> The /only refinement  is   used for a block  nested  within
> another block.  The  /deep refinement is used for recursing
> through any number of nested blocks.
> 
> This may  not  sound like much  of a  difference, but it is
> felt  that the difference is sufficient  enough  to note by
> two different refinements.
> 
> If you  have any additional questions/comments/suggestions,
> please let us know!
> 
> REBOL Support --

Reply via email to