swarm-support
[Top][All Lists]
Advanced

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

Re: Error with lists


From: Marcus G. Daniels
Subject: Re: Error with lists
Date: 11 Jan 2001 10:40:55 -0800
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "PJ" == Paul E Johnson <address@hidden> writes:

PJ> I recall getting crashes when trying to remove the first element
PJ> of an empty list. 

It should work, and it works for me.

#import <simtools.h>
#import <collections.h>

int
main (int argc, const char **argv)
{
  initSwarmBatch (argc, argv);

  {
    id <List> list = [List create: globalZone];
    
    [list deleteAll];
  }
  return 0;
}

/*
Local Variables:
compile-command-x: "$SWARMHOME/bin/libtool-swarm --mode=link gcc -D_GNU_SOURCE 
-o  deleteAll -Wall -Werror -g -Wno-import -I$SWARMHOME/include/swarm 
-L$SWARMHOME/lib/swarm deleteAll.m -lswarm -lobjc"
compile-command: "/opt/SDGswarm/2.1.1/bin/libtool-swarm --mode=link 
/opt/SDGgcc/2.95.2/bin/gcc -o deleteAll -Wall -Werror -g -Wno-import 
-I/opt/SDGswarm/2.1.1/include -L/opt/SDGswarm/2.1.1/lib deleteAll.m -lswarm 
-lobjc"
End:
*/

                  ==================================
   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]