summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MLKArray.h1
-rw-r--r--MLKArray.m8
2 files changed, 9 insertions, 0 deletions
diff --git a/MLKArray.h b/MLKArray.h
index 5fedf1c..1205b69 100644
--- a/MLKArray.h
+++ b/MLKArray.h
@@ -31,6 +31,7 @@
NSArray *_displacement;
}
++(id) array;
-(id) initWithDimensions:(NSArray *)dimensions;
-(NSArray *) dimensions;
diff --git a/MLKArray.m b/MLKArray.m
index 5890953..11c7889 100644
--- a/MLKArray.m
+++ b/MLKArray.m
@@ -30,6 +30,14 @@
@implementation MLKArray
++(id) array
+{
+ return LAUTORELEASE ([[self alloc]
+ initWithDimensions:
+ [NSArray arrayWithObject:
+ [MLKInteger integerWithInt:0]]]);
+}
+
-(id) initWithDimensions:(NSArray *)dimensions
{
NSEnumerator *e;