Path: utzoo!attcan!uunet!cs.utexas.edu!uwm.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!hplabs!hpda!hpcuhb!hpindda!hardin From: hardin@hpindda.HP.COM (John Hardin) Newsgroups: comp.sys.ibm.pc.programmer Subject: Re: Turbo Products are shipping Message-ID: <47730004@hpindda.HP.COM> Date: 12 Jun 90 17:19:50 GMT References: <9006091405.AA18563@edison.CHO.GE.COM> Organization: HP Information Networks, Cupertino, CA Lines: 15 bwilliam%peruvian.utah.edu@cs.utah.edu (Bruce R. Williams) writes: > An aside: When it's said that C++ will compile C code, does that mean > that it treats it as a C++ program just with no C++ specific code? > ...or does it recognize it as a C program? ---------- Turbo C++ treats C programs as C. It tells which compiler to use by looking at the file extension ( X.C is C, X.CPP is C++). I tried compiling an X.C program that contained C++ constructs and got all sorts of errors. Renamed it to X.CPP and it compiled correctly. John Hardin hardin@hpindgh.hp.com -------