<?xml version="1.0" encoding="windows-1252"?>
<node id="733910" title="Re: Compact and sparse bit vector" created="2009-01-03 08:35:54" updated="2009-01-03 08:35:54">
<type id="11">
note</type>
<author id="108447">
demerphq</author>
<data>
<field name="doctext">
&lt;p&gt;
The only thing is a lot of the time people use vec() specifically because they want the string to be a bit-vector. They dont want to use it as an array of &lt;8 bit units of information so much, as a way to individually control bits in a string with a reasonably syntax.
&lt;/p&gt;
&lt;p&gt;
Although having said that, the problem with vec() in this form is that it doesnt use native byte order, so you cant normally pass it directly into a C routine. So i guess your proposal has some merit...
&lt;/p&gt;

&lt;div class="pmsig"&gt;&lt;div class="pmsig-108447"&gt;
---&lt;br /&gt; 
$world=~s/war/peace/g&lt;br /&gt;
&lt;br /&gt;

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
732843</field>
<field name="parent_node">
732843</field>
</data>
</node>
