Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!davidbro From: davidbro@microsoft.UUCP (Dave BROWN) Newsgroups: comp.sys.amiga.programmer Subject: Re: Lattice C++ Message-ID: <72373@microsoft.UUCP> Date: 15 May 91 21:54:45 GMT References: <1474@loki.une.oz.au> <38576@ditka.Chicago.COM> Reply-To: davidbro@microsoft.UUCP (Dave BROWN) Organization: Microsoft Corp., Redmond WA Lines: 36 In article <38576@ditka.Chicago.COM> comeau@csanta.attmail.com (Greg Comeau) writes: >I'm not versed enough in AmigaDOS specific, however what I can tell you >is that compiler supporting either the 2.0 or 2.1 spec of C++ have >something called 'extern "C"' syntax which allows you an interface to >C. Under some, for instance, Comeau C++, we literally pick up your C >compilers include files. Hence, the call in C++ would be *EXACTLY* the >same as it would be in C. Just to pick nits, this is true unless the AmigaDOS or Intuition function name is the same name as a method in a current class definition, in which case the name would be prepended with :: . No big deal, it's just that I ran into it the other day when I was creating a List class that utilizes Exec's list handling functions. >- Greg dave p.s. to greg: I am the david brown you had been playing phone tag with the other week. The problem I was having was due to my forgetting to set the stack to the correct size... >-- > Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418 > Producers of Comeau C++ 2.1 > Here:attmail.com!csanta!comeau / BIX:comeau / CIS:72331,3421 > Voice:718-945-0009 / Fax:718-441-2310 -- Dave Brown ...!uunet!microsoft!davidbro ...ni ssendriew eht tel eW "the night doesn't like it... looks just like your face in the moon to me"