Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!pa.dec.com!shlump.nac.dec.com!engage!ootool.dec.com!tenny From: tenny@ootool.dec.com (Dave Tenny) Newsgroups: comp.sys.next Subject: Re: Mixing C++ and Objective-C Message-ID: <1991Feb28.131834.7323@engage.enet.dec.com> Date: 28 Feb 91 13:17:08 GMT Sender: news@engage.enet.dec.com (USENET News System) Organization: Digital Equipment Corporation Lines: 17 In article <30778@mimsy.umd.edu>, wilson@mimsy.umd.edu (Anne Wilson) writes... >machine's software. My question is this - how freely can C++ >and Objective-C be mixed using the new compiler? Must each >module be distinctly one or the other? Is there any reason >not to continue coding in C++ while I'm waiting? I've used both Objc and cc++ on the NeXT. The documentation says that they've modified cc++ to recognize objc constructs, but this is the one thing I haven't tried yet. C++ code has no trouble #importing objc include files. One gotcha for your app, none of the traditional c++ libraries are on the Next. No streams in particular. So unless you port libg++ yourself, you'd better plan on using stdio. Dave