Can't imagine it being more than 20 lines of code? C'mon, Syzygies... as a programmer, you also likely know that everything's easy/short/trivial when you don't have to do it, bulletproof it and test it.
We have some ideas in this area. They're not what you're suggesting, no, but rather better. But it's complicated to do right...
__________________
--Dave Nanian
|