On 2010-12-19 07:33:29 -0500, spir <[email protected]> said:
// pointer
t0 = time();
foreach (n ; 0..N2) {
p = (n in table);
if (p) b = table[n];
}
But why the double lookup? Just dereference the pointer:
foreach (n ; 0..N2) {
p = (n in table);
if (p) b = *p;
}
--
Michel Fortin
[email protected]
http://michelf.com/
