home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / Apps / DevTools / COWS / Code / COWSArrayLibrary.h < prev    next >
Encoding:
Text File  |  1994-03-25  |  881 b   |  35 lines

  1. /*
  2.     Copyright (C) 1994 Sean Luke
  3.  
  4.     COWSArrayLibrary.h
  5.     Version 1.0
  6.     Sean Luke
  7.     
  8. */
  9.  
  10. // Note that the hash table that stores arrays is not cleared out until
  11. // the array is reloaded or freed.  This means that programs can be run
  12. // and rerun, even reloaded, and the same pointers are in the hash table
  13. // unless they've been removed with free-array.
  14.  
  15.  
  16. #import "COWSLibrary.h"
  17.  
  18. @interface COWSArrayLibrary:COWSLibrary <InterpreterToLibrary>
  19. {
  20.     id hashtable;
  21.     int counter;
  22. }
  23.  
  24. - init;
  25. - free;
  26. - loadLibrary:sender;
  27. - pauseCancelled:sender;            
  28.                             
  29. - array_makearray:arg_list;    // makes an array and returns a key to the array
  30. - array_freearray:arg_list;    // frees an array by key
  31. - array_setarray:arg_list;    // sets a value in an array by key
  32. - array_getarray:arg_list;    // gets a value in an array by key
  33. - array_isarray:arg_list;    // returns t if value is a valid array, f if not
  34.  
  35. @end