?

Log in

No account? Create an account
penrose orange

stephenw32768


/var/log/stephen

cat /var/log/stephen >/dev/eyes


2drop
penrose orange
stephenw32768
RPN calculator, drop 2: evaluator and command-line executable.

EDIT: discovered embarrassing bug in the chaining hash table. After a rehash, the next key to be inserted went in the wrong bucket, thus getting completely lost. Oops. Here's the fix. Making getBucket() type-safe would've prevented the bug from occurring in the first place; but since Java's Map interface specifies that get() has to accept keys of any type, I made getBucket() do the same. Now this bug's come to light, it's clear that the code's type-safety needs to be improved. Watch this space...