home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!dog.ee.lbl.gov!news!vela!cs.uiuc.edu!sparc0b!pjl
- From: pjl@cs.uiuc.edu (Paul Lucas)
- Subject: Re: Smalltalk -> C++
- Message-ID: <C1IsGw.Iv5@cs.uiuc.edu>
- Sender: news@cs.uiuc.edu
- Organization: University of Illinois at Urbana-Champaign
- References: <1993Jan27.001545.4289@MasPar.COM>
- Distribution: usa
- Date: Wed, 27 Jan 1993 16:00:32 GMT
- Lines: 23
-
- In <1993Jan27.001545.4289@MasPar.COM> linton@argosy.UUCP (Tom Linton) writes:
-
- >Does anyone know of a reliable program which can
- >convert Smalltalk to C++?
-
- I would think that it's impossible. Smalltalk has things like
- class-instance variables and blocks which C++ doesn't. You also
- have to write all the Smalltalk primitives yourself since
- there's no (non-machine) code to be converted; you'd also have to
- convert all (many?) of the packaged classes, which are copyrighted
- by their vendors.
-
- Also, things like numbers aren't objects in C++ and don't
- respond well to messages.
-
- Even if it were possible, the resulting code wouldn't be the way
- it would have been had it been written in C++ to begin with.
- (This is true of any language-to-language conversion, IMHO). To
- do it properly still requires people.
- --
- - Paul J. Lucas
- AT&T Bell Laboratories
- Naperville, IL
-