
In the message from Jim Whitehead II jnwhiteh@gmail.com: On Wed, Jun 10, 2009 at 9:15 AM, Olivier Hamel<evilpineapple@cox.net> wrote:Probably way premature but I can resist asking, does anyone but Robertoknow anything of what will be the next version of Lua? I'm interestedbecause from what I've seen Lua has a (good?) peculiar tendency to radicallychange it's 'feel'/design radically at each iteration.
As I did a bitmap implementation, I hereby add its htmldocs of this for what it is worth in the discussion. Interested parties can find the code here (use it with due credit): http://staff.science.uva.nl/~hansm/publications.html Hans van der Meer 
bits
assigned to it from the require
.
bits
as
the variable name.
ipairs
on tables.
printlimit
method.
By default the limit is set to zero; the other obvious default is printing
the whole bitmap, but this can turn out to be disastrous large.
bits.create(value, number) 
return bitmap of given size set to value 
bits:set(value) 
set all bits to value, return bitmap 
bits:set(value, n1[,n2[n3,...]]) 
set these bits to value, return bitmap 
bits:get(n) 
get value of this bit 
bits:get(n1[,n2[n3,...]]) 
get value of these bits 
bits:iterator() 
return iterator for all bits => i,v 
bits:iterator(n) 
return iterator starting at bit n => i,v 
bits:iterator(n1, n2) 
return iterator over range [n1..n2] => i,v 
bits:index(value) 
return iterator => next index with the value 
bits:index(value, start) 
return index of next bit with the value 
bits:isequal(b) 
bits == b 
return true or false for equality 
bits:notbits() 
 bits 
return NOT of the bitmap 
bits:orbits(b) 
bits + b 
return OR of the bitmaps 
bits:andbits(b) 
bits * b 
return AND of the bitmaps 
bits:xorbits(b) 
bits % b 
return XOR of the bitmaps 
bits:orbits(n1, n2[, n3,...]) 
return OR of these bits  
bits:andbits(n1, n2[, n3,...]) 
return AND of these bits  
bits:xorbits(n1, n2[, n3,...]) 
return XOR of these bits 
bits:copy() 
return a copy of the bitmap 
bits:printlimit() 
return current limit 
bits:printlimit(n"all""*") 
set n or all bits printed, return new limit 
bits:size(), #bits 
return the bit capacity 
bits:ones() 
return the number of 1 bits 
bits.version() 
return the version of module 