home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / object / 4656 < prev    next >
Encoding:
Internet Message Format  |  1992-12-24  |  2.1 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!ames!purdue!not-for-mail
  2. From: gb@cs.purdue.edu (Gerald Baumgartner)
  3. Newsgroups: comp.object
  4. Subject: Re: GCC 2.3.2 implementation of signatures for C++
  5. Date: 24 Dec 1992 02:24:46 -0500
  6. Organization: Department of Computer Sciences, Purdue University
  7. Lines: 34
  8. Message-ID: <1hbojuINNt6u@ector.cs.purdue.edu>
  9. References: <1h8cg6INNccc@ector.cs.purdue.edu>
  10.     <1992Dec23.151615.27346@fnbc.com>
  11. NNTP-Posting-Host: ector.cs.purdue.edu
  12. In-reply-to: billb@nasty's message of 23 Dec 92 15:16:15 GMT
  13.  
  14. In article <1992Dec23.151615.27346@fnbc.com> billb@nasty (Bill Burcham) writes:
  15. > In article <1h8cg6INNccc@ector.cs.purdue.edu> gb@cs.purdue.edu (Gerald  
  16. > Baumgartner) writes:
  17. > > Roughly, signatures are type abstractions or interfaces of classes.
  18. > > They are related to ML's signatures, categories in Scratchpad II,
  19. > > definition modules in Modula-2, interface modules in Modula-3, and
  20. > > types in POOL-I.
  21.  
  22. > .. or protocols in Objective-C?  Is there any plan to add a distributed  
  23. > object capability using signatures?
  24.  
  25. I don't know Objective-C, I haven't been able to dig out any reference
  26. yet.  From what I can tell from reading the YACC grammar of
  27. Objective-C, it has INTERFACE classes and IMPLEMENTATION classes.
  28. Those interface classes seem to be related to signatures.
  29.  
  30. A distributed object capability is not done by just adding signatures.
  31. Our signatures are compile time type definitions.  The compiler uses
  32. them only for type checking purposes.  At run time, the only type
  33. information that's available is the signature table (similar to a
  34. virtual function table).  It is used to dispatch to the correct class
  35. method.
  36.  
  37. To allow passing objects in a distributed environment, you need a
  38. run-time notion of signatures.  And you need to perform type checks
  39. (i.e., signature conformance checks) at run time when an object is
  40. sent from one machine to another.
  41.  
  42. There is research done here at Purdue on building a distributed object
  43. system for a heterogenous programming environment, but this research
  44. is independent of the signature language construct for C++.  In fact
  45. it is independent of the programming language.
  46.  
  47. --Gerald
  48.