home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 20069 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.3 KB  |  36 lines

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