From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5f4679d58bde270f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: Brian May Newsgroups: comp.lang.ada Subject: Re: Calling C++ methods from Ada.. References: <12249392.8B9d8fV5qk@linux1.krischik.com> Date: Sat, 04 Dec 2004 21:09:16 +1100 Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:JqcNHmUxs/e+6s5BbgaLa2/jFGU= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: snoopy.microcomaustralia.com.au X-Trace: news.melbourne.pipenetworks.com 1102154933 202.173.153.89 (4 Dec 2004 20:08:53 +1000) X-Complaints-To: abuse@pipenetworks.com X-Abuse-Info: Please forward all headers to enable your complaint to be properly processed. Path: g2news1.google.com!news4.google.com!news.glorb.com!newsfeed-east.nntpserver.com!nntpserver.com!news1.optus.net.au!optus!news.mel.connect.com.au!news-north.connect.com.au!duster.adelaide.on.net!news.melbourne.pipenetworks.com!not-for-mail Xref: g2news1.google.com comp.lang.ada:6751 Date: 2004-12-04T21:09:16+11:00 List-Id: >>>>> "Luke" == Luke A Guest writes: Luke> So, the example could be written like this: pragma Luke> import(CPP, GCC3, SET_TIME, "void Time::SetTime(...)"); Luke> Although, I'm not sure why he would be passing in a pointer Luke> to a set time function ;-) Of course you need at least one pointer - don't forget the hidden C++ *this parameter... (I am still assuming the function in question is static). -- Brian May