REBOL3 tracker
  0.9.12 beta
Ticket #0001452 User: anonymous

Project:



rss
TypeBug Statustested Date30-Jan-2010 21:21
Versionalpha 96 CategoryDatatype Submitted byptretter
PlatformAll Severityminor Priorityhigh

Summary INSERT and APPEND into binary! not working with block! value
Description The INSERT and APPEND actions of binary! don't accept a block! value, even if that block is full of binary values. They should at least at least accept blocks full of binary! values. If they did TO binary! on non-binary values that would be helpful, comparable to the FORM that INSERT string! block! does for non-string values in the block, but it's not strictly necessary.

APPEND binary! block! is used by JOIN and REJOIN.
Example code
>> head insert #{} #{00}
== #{00}

>> head insert #{} [#{00}]
** Script error: invalid argument: [#{00}]
** Where: insert
** Near: insert #{} [#{00}]

>> append #{} [#{00}]
** Script error: invalid argument: [#{00}]
** Where: append
** Near: append #{} [#{00}]

>> rejoin [#{01} #{02}]
** Script error: invalid argument: [#{02}]
** Where: append rejoin
** Near: append either series? first block [copy first block] [
    f...

Assigned ton/a Fixed inalpha 98 Last Update6-May-2010 09:16


Comments
(0001990)
BrianH
7-Feb-2010 10:24

Note: This not only affects JOIN and REJOIN, but adds overhead to SAVE as well (see #1466 for why).
(0002334)
BrianH
6-May-2010 09:15

Now works for blocks containing binary!, char! and string! values, and integers from 0 to 255 (which are inserted as bytes).

Date User Field Action Change
6-May-2010 10:04 BrianH Comment : 0002334 Modified -
6-May-2010 09:16 BrianH Status Modified built => tested
6-May-2010 09:15 BrianH Comment : 0002334 Added -
30-Apr-2010 21:00 carl Fixedin Modified => alpha 98
30-Apr-2010 21:00 carl Status Modified reviewed => built
19-Apr-2010 19:05 BrianH Severity Modified major => minor
19-Apr-2010 19:05 BrianH Priority Modified normal => high
7-Feb-2010 10:24 BrianH Comment : 0001990 Added -
6-Feb-2010 05:45 carl Priority Modified urgent => normal
30-Jan-2010 21:50 BrianH Summary Modified insert and append not working with binary! => INSERT and APPEND into binary! not working with block! value
30-Jan-2010 21:50 BrianH Description Modified -
30-Jan-2010 21:50 BrianH Code Modified -
30-Jan-2010 21:50 BrianH Category Modified Native => Datatype
30-Jan-2010 21:50 BrianH Status Modified submitted => reviewed
30-Jan-2010 21:50 BrianH Platform Modified Windows => All
30-Jan-2010 21:21 ptretter Ticket Added -