🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
1 messages
1 total messages Started by Allen King Tue, 15 Sep 1992 13:37
3.0 great, but return type of -data?
#1053
Author: Allen King
Date: Tue, 15 Sep 1992 13:37
33 lines
1923 bytes
   Love that 3.0!!!. Integration of gdb and edit is a big improvement
over 2.1. One thing that pleased me is that if I insert lines in a
source I'm stepping around in, the step still gets the line numbers
correct!

   I believe that the "data" method of NXdata.h and NXBitmapImageRep in 3.0
together break the rule that methods with the same name must have the same
return value. The compiler says:

Spectrogram.m:181: warning: multiple declarations for method `data'
  /NextDeveloper/Headers/machkit/NXData.h:23:
                                      using `-(void *)data'
  /NextDeveloper/Headers/appkit/NXBitmapImageRep.h:53:
                                      also found `-(char unsigned *)data'

   The documentation of each agrees with its respective header files. What's
the scoup? 

       Do others find the same thing? (perhaps my upgrade failed)
       Is this also true on 2.1 (but now the compiler checks more) ?
       What's the cleanest workaround? (my take is to change 
            NXBitmapImageRep.h)


                               Allen King

P.S.:
   The program which does this does two non-standard things, neither of which
"should" cause a problem:
    1. The program uses 2.1 optimization of importing just those specific 
       include files that are needed (rather than using appkit/appkit.h).
    2. The program uses the MusicKit, with header files retained from 2.1.
		
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads