[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Re: [bug] WeakArray new error

From: Paolo Bonzini
Subject: [Help-smalltalk] Re: [bug] WeakArray new error
Date: Sun, 17 Aug 2008 01:09:14 -0700

Issue status update for Post a follow up:

Project:      GNU Smalltalk
Version:      <none>
Component:    Base classes
Category:     bug reports
Priority:     normal
Assigned to:  Unassigned
Reported by:  lethalman
Updated by:   bonzinip
-Status:       active
+Status:       fixed

Fixed in c6b3fdf, thanks!

diff --git a/kernel/ b/kernel/
index 8b4127f..60fd905 100644
--- a/kernel/
+++ b/kernel/
@@ -39,9 +39,15 @@ Array subclass: WeakArray [
I am similar to a plain array, but my items are stored in a weak
so I track which of them are garbage collected.'>

+    WeakArray class >> new [
+       "Create a new WeakArray of size 0."
+ + ^self new: 0
+    ]
    WeakArray class >> new: size [
-       "Private - Initialize the values array; plus, make it weak and
-        the ByteArray used to track garbage collected values"
+       "Create a new WeakArray of the given size."

^self basicNew initialize: size

reply via email to

[Prev in Thread] Current Thread [Next in Thread]