[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Array and deleteAll
From: |
James Marshall |
Subject: |
Array and deleteAll |
Date: |
Tue, 8 Sep 1998 13:34:05 GMT |
Hi,
I've been trying to use deleteAll to remove objects in an Array, as
suggested, but it doesn't work! Here's my code and the output
produced at runtime:
payoffs=[Array create: [self getZone] setCount: 2];
[payoffs atOffset: 0 put: [Array create: [self getZone] setCount:
2]];
[payoffs atOffset: 1 put: [Array create: [self getZone] setCoune:
2]];
when I try the following:
[payoffs deleteAll];
I get the following:
*** event raised for error: SourceMessage
*** function: _i_ArrayIndex_c__remove(), file: Array.m, line: 415 >
remove is not supported on any Array - can only replace members ***
execution terminating due to error
Aborted
when I try:
[[payoffs getCollection] deleteAll];
I get a core dump.
James
--
James Marshall - Postgraduate Research Student (MPhil/PhD)
Artificial Intelligence Group - Department of Computer and Information Sciences
De Montfort University - Milton Keynes Campus
Web:- http://www.mk.dmu.ac.uk/~jmarshall/
==================================
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.
==================================
- Array and deleteAll,
James Marshall <=