[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
http://smalltalk.gnu.org/project/issue/243
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/243
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/WeakObjects.st b/kernel/WeakObjects.st
index 8b4127f..60fd905 100644
--- a/kernel/WeakObjects.st
+++ b/kernel/WeakObjects.st
@@ -39,9 +39,15 @@ Array subclass: WeakArray [
I am similar to a plain array, but my items are stored in a weak
object,
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
create
- the ByteArray used to track garbage collected values"
+ "Create a new WeakArray of the given size."
^self basicNew initialize: size