Author Topic: ScriptBasic Hash Extension Module Fix  (Read 6709 times)

Support

  • Administrator
  • *****
  • Posts: 13
    • View Profile
ScriptBasic Hash Extension Module Fix
« on: April 10, 2011, 06:20:44 pm »
Armando fixed an age old issue with the hash extension module (memory error) and I tested it on both 32 and 64 bit Ubuntu.

Armando's test program
Code: [Select]
import hash.bas

h = hash::New()

for i=1 to 10
hash::SetValue h,"q"&i,i
next i

hash::Start h
while hash::Exists(h)
 print hash::ThisKey(h)," ", hash::ThisValue(h)
 print
 hash::Next h
wend

hash::Release h

jrs@Laptop:~/SB/test$ scriba hash.air
q1 1
q2 2
q3 3
q4 4
q5 5
q6 6
q7 7
q8 8
q9 9
q10 10
jrs@Laptop:~/SB/test$
« Last Edit: April 10, 2011, 06:26:57 pm by support »