home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / sampl254.zip / gcc2 / samples / sample5 / Node.h < prev    next >
Text File  |  1993-11-07  |  379b  |  17 lines

  1.  
  2. // Node.h - comp.lang.objective-c simple sample Objective-C program
  3.  
  4. #import <objc/Object.h>
  5.  
  6. @interface      Node : Object
  7. {
  8.   id    next;
  9.   id    data;
  10. }
  11.  
  12.  +    new: anItem;     // create a Node and store anItem in it
  13.  -     free;         // free a Node and return the item in it
  14.  -     next;         // report the id of the next node after this one
  15.  -    set_next: aNode; // make the next node be aNode
  16. @end
  17.