home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / objectiv / 728 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.7 KB

  1. Path: sparky!uunet!richsun!richsun.cpg.trs.reuter.com
  2. From: jack@richsun.cpg.trs.reuter.com (Jack Gidding)
  3. Newsgroups: comp.lang.objective-c
  4. Subject: Re: why no class variables?
  5. Message-ID: <3937@richsun.cpg.trs.reuter.com>
  6. Date: 25 Jan 93 15:26:36 GMT
  7. References: <1993Jan22.133837.13502@news.media.mit.edu>
  8. Sender: news@richsun.cpg.trs.reuter.com
  9. Lines: 39
  10.  
  11. In article <1993Jan22.133837.13502@news.media.mit.edu>  
  12. wave@media.mit.edu (Michael B. Johnson) writes:
  13. > Hi folks.  For a project I've been doing for some time now, I need  
  14. to keep
  15. > some state info in the Class of a given object.  I'm annoyed by the  
  16. fact
  17. > that I can't add instance variables to a Class object, and have to  
  18. "simulate"
  19. > them with static variables.  Off the top of my head, I don't  
  20. understand this
  21. > restriction.  Can someone out there convince me that this is a  
  22. necessary 
  23. > and proper restriction?
  24.  
  25.  
  26. I wholeheartedly agree! I think that these are necessary as well.  
  27. Class variables are important for doing things exactly as you  
  28. mentioned. 
  29.  
  30. I have the same problem. I set up some initialization for a class  
  31. when the first one is created. By faking the class variables with  
  32. static variables means that I have to restrict my subclassing. Grrr.
  33.  
  34. For me, I need the static variables for time optimization. I look up  
  35. function references and store them. Its a long story, but its a  
  36. necessary optimization in our real-time system.
  37.  
  38. ---
  39. Jack Gidding    Sr. Development Engineer   
  40. Reuters         1400 Kensington Road   Oak Brook,IL 60521
  41.  
  42. jack@richsun.cpg.trs.reuter.com        NeXT mail welcome!
  43. -----------------------------------------------------------
  44. "Credit is a euphemism for debt."      - Billy McKenzie
  45.  
  46.  
  47.  
  48.  
  49.