IT Conversations' Tip Jar is Open. Doug Kaye at IT Conversations has a tip jar up and running. I dropped $10 in to say thanks for all of the great content. If you listen and enjoy the quality of his work, say so by hitting that link and opening your wallet. via [house of warwick]
the power of 0ne
where binary meets reality
the power of 0ne
# November 29, 2004
Ok, so the Usertalk bug I posted last week was a little obscure, so far only Steve has even attempted to solve the problem.
Here's an example script you can excecute that demonstrates the problem:
on createAlphaTable () { // items A through J local (t); new (tableType, @t); for i = 1 to 10 { // create a table with n items t.[char(i+64)] = true}; // A is ascii 65 return (t)}; local (t = createAlphaTable ()); for adrItem in @t { if adrItem^ == true { delete (adrItem)}} dialog.alert ("Items in table: " + sizeOf (t))
The last line of the script tells us that their are still 5 items left in the table! The script should have deleted every item, because they were all set to true, why didn't it?
I will be posting a full explanation in the comments, so you have one final chance to solve it :)