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