home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6163 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  1.8 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!nigel.msen.com!yale.edu!qt.cs.utexas.edu!news.Brown.EDU!noc.near.net!news.bbn.com!news.bbn.com!news
  2. From: aking@BBN.COM (Allen King)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: 3.0 great, but return type of -data?
  5. Date: 15 Sep 1992 13:37:08 GMT
  6. Organization: Bolt Beranek and Newman Inc., Cambridge MA
  7. Lines: 35
  8. Distribution: world
  9. Message-ID: <lbbpo4INNqrv@news.bbn.com>
  10. Reply-To: aking@BBN.COM (Allen King)
  11. NNTP-Posting-Host: bbn.com
  12.  
  13.    Love that 3.0!!!. Integration of gdb and edit is a big improvement
  14. over 2.1. One thing that pleased me is that if I insert lines in a
  15. source I'm stepping around in, the step still gets the line numbers
  16. correct!
  17.  
  18.    I believe that the "data" method of NXdata.h and NXBitmapImageRep in 3.0
  19. together break the rule that methods with the same name must have the same
  20. return value. The compiler says:
  21.  
  22. Spectrogram.m:181: warning: multiple declarations for method `data'
  23.   /NextDeveloper/Headers/machkit/NXData.h:23:
  24.                                       using `-(void *)data'
  25.   /NextDeveloper/Headers/appkit/NXBitmapImageRep.h:53:
  26.                                       also found `-(char unsigned *)data'
  27.  
  28.    The documentation of each agrees with its respective header files. What's
  29. the scoup? 
  30.  
  31.        Do others find the same thing? (perhaps my upgrade failed)
  32.        Is this also true on 2.1 (but now the compiler checks more) ?
  33.        What's the cleanest workaround? (my take is to change 
  34.             NXBitmapImageRep.h)
  35.  
  36.  
  37.                                Allen King
  38.  
  39. P.S.:
  40.    The program which does this does two non-standard things, neither of which
  41. "should" cause a problem:
  42.     1. The program uses 2.1 optimization of importing just those specific 
  43.        include files that are needed (rather than using appkit/appkit.h).
  44.     2. The program uses the MusicKit, with header files retained from 2.1.
  45.         
  46.  
  47.  
  48.