home *** CD-ROM | disk | FTP | other *** search
/ Peanuts NeXT Software Archives / Peanuts-2.iso / Developer / resources / classes / misckit / MiscKit.mbox / text0046.txt < prev    next >
Encoding:
Text File  |  1993-10-26  |  1.9 KB  |  51 lines

  1.  
  2. >The string class stuff currently in the MiscKit looks nice,
  3. >but I think I'd like to see it broken up into a small heirarchy
  4. >of classes.  For instance, a constant-and-unique string class
  5. >would be nice.  I have a memory-efficient and moderately fast
  6. >one (that actually protects the memory the strings are in,
  7. >unlike the unique strings created with NXUniqueString())
  8. >that I could donate to the MiscKit, and/or incorporate into
  9. >such a heirarchy.
  10. >
  11.  
  12.  Hmm....  Don was wondering about this recently, too.  The .m
  13. file is getting pretty big, and isn't likely to get smaller - 
  14.  
  15. or even stay the same size - in the future.  The problem with
  16. doing some subclassing (MiscFileString was Don's example,
  17. I think) is that if you want to use a method from one subclass
  18. of MiscString and one from another, well, it gets difficult.  
  19.  
  20. Personally, I prefer to have as much flexibility at hand as
  21. possible.
  22.   Don also suggested another tactic:  Make a streamlined string
  23. superclass and have the main string class be a subclass of
  24. that.  That way, someone doesn't have to include all those
  25. methods if not needed.  In other words, a linear progression of
  26. subclasses maybe, but not parallel.  But the more files, the 
  27.  
  28. more complicated.
  29.  
  30.   Another possibility is splitting up the .m file into 
  31.  
  32. components to make them more manageable, but again it means
  33. more files.  I'm not sure if it's possible to decide which
  34. sections get included or not.... if so, that is another possiblity -
  35. allow the programmer to decide which sections of code they want
  36. want to bring in.
  37.  
  38.   If it has to be split up, though, I like the streamlined
  39. superclass idea best...
  40.  
  41. Carl
  42.  
  43. ---
  44. +---------------------------------------------------+
  45. |Carl Lindberg           Colgate University  '94    |
  46. |clindberg@colgateu.bitnet                          |
  47. |clindberg@center.colgate.edu                       |
  48. |lindberg@csnext.colgate.edu    (NeXTMail welcome)  |
  49. +---------------------------------------------------+
  50.  
  51.