> I see a typo and have some questions:
> 
> > ! To change a sequence of bytes the [:] notation can be used: >
> > ! let blob[1:3] = 0z445566
> > ! The length of the replaced bytes much be exactly the same as the value
> 
> Typo: much -> must
> 
> > ! To change part of a blob you can specify the first and last byte to be
> > ! modified.  The value must at least have the number of bytes in the
> range: >
> > ! :let blob[3:5] = [3, 4, 5]
> 
> Suddenly it's possible to specify longer sequences? The paragraph above
> prohibits this.

No, this was indeed a copy-paste leftover.

> Or is this paragraph a copy-paste leftover? Except for the length thing it
> seems to say almost the same thing as the previous one.
> Also the example uses a list as a replacement value, not a blob. Is it
> intentional? What if the list contains something other than what fits in
> bytes?

The value must be a blob, a list doesn't work.

> > + < *blob-identity* *E977*
> > + When variable "aa" is a Blob and you assign it to another variable
> "bb", both
> > + variables refer to the same Blob.  Then the "is" operator returns true.
> > +
> > + When making a copy using [:] or |copy()| the values are the same, but
> the
> > + identity is different: >
> > + :let blob = 0z112233
> > + :let blob2 = blob
> > + :echo blob == blob2
> > + < 1 >
> > + :echo blob is blob2
> > + < 1 >
> > + :let blob3 = blob[:]
> > + :echo blob == blob3
> > + < 1 >
> > + :echo blob is blob3
> > + < 0
> > +
> > + ! Making a copy of a list is done with the |copy()| function.  Using
> [:] also
> > + ! works, as explained above.
> 
> Wasn't this meant to say "copy of a blob" instead of "copy of a list"?

Yes, I'll fix it.

-- 
hundred-and-one symptoms of being an internet addict:
222. You send more than 20 personal e-mails a day.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui