swarm-support
[Top][All Lists]
Advanced

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

Re: Why can't I create a zero length array


From: Roger M. Burkhart
Subject: Re: Why can't I create a zero length array
Date: Sun, 22 Jun 1997 20:21:23 -0500

The problem reported by Kevin Crowston of not being able to create a
zero-length array is definitely a bug.  swarm-1.0.2 won't help, but the
problem will get fixed in future releases.  The only workaround for now
is to make sure you don't try to create an array of zero length.

--Roger

> Creating a zero-length array appears to be illegal.  This appears to be a
> bug, as the documentation says of count that "Any non-negative value
> including zero is valid." (from
> http://www.santafe.edu/projects/swarm/swarmdocs/src/collections/Array.html).
> I'm using 1.0.0, but the release notes for later versions don't seem to
> mention this problem.  (I'll download 1.0.2 anyway.)
> 
> Here's the backtrace:
> 
> *** event raised for error: InvalidAllocSize
> *** function: _i_Zone_c__allocBlock_(), file: Zone.m, line: 296
> > Requested allocation size must be at least one byte.
> > (Requested allocation size was zero.)


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

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