[REBOL] a GC bug of the second kind Re:(3)
From: doug:vos:eds at: 26-Sep-2000 12:49
REBOL/Core 2.3.0.3.1
Copyright 1997-2000 REBOL Technologies
REBOL is a Trademark of REBOL Technologies
All rights reserved.
Component: "Internet Protocols" (17-Jun-2000/1:53:16)
Finger protocol loaded
Whois protocol loaded
Daytime protocol loaded
SMTP protocol loaded
POP protocol loaded
HTTP protocol loaded
FTP protocol loaded
NNTP protocol loaded
Script: "User Preferences" (3-Aug-2000)
>> h: make hash! 0
== make hash! []
>> insert h copy "0123456789"
== make hash! []
>> h
== make hash! ["0123456789"]
>>
!CRASH
The hash-crash on Windows 95!
So, I ask the question - why did you initialize to size 0??
Try the same thing with initialize of size 10:
h: make hash! 10
>> h: make hash! 10
== make hash! []
>> insert h copy "0123456789"
== make hash! []
>> h
== make hash! ["0123456789"]
>> recylce
** Script Error: recylce has no value.
** Where: recylce
>> recycle
>> insert h copy "0123456789"
== make hash! ["0123456789"]