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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3f2a5a3fc8bb8d4b X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!feeder.news-service.com!news.motzarella.org!motzarella.org!not-for-mail From: =?ISO-8859-1?Q?S=E9bastien?= Newsgroups: comp.lang.ada Subject: Re: Interfacing with Objective-C or Python Date: Mon, 26 May 2008 09:02:22 +0000 Organization: A noiseless patient Spider Message-ID: <483A7C9E.7010603@gmail.com> References: <70ae8db4-60f1-4069-8ebc-94d5afe38eaa@x1g2000prh.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: feeder.motzarella.org U2FsdGVkX1/7X9nw8mWjHqzoibPz1aST+CLSYkKSYjd4aQBSw76sOR1tXhD4SbmyX4kJ1/nat1NR3R/OK0nV1rsyfpybDKes/VrkMxLbVBHtrjHyslHTLlvVdZ9T9vsv/VVn1CaBi65wwKzecNndUQ== X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Mon, 26 May 2008 09:02:28 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1842XP/8lKl/TPrwhbAmTpEt2tyfvl7O+OaexUteB14Lw== Cancel-Lock: sha1:HpBh6x2YCf10z7LqkW7aQobb+q0= User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) Xref: g2news1.google.com comp.lang.ada:355 Date: 2008-05-26T09:02:22+00:00 List-Id: Adrian Hoe a �crit : > Hi, > > I am developing web-enabled application using AWS. This application > has the capability to send SMS via Skype. The development and target > platform will be Mac OS X. Unfortunately, I can only find Skype > examples in Objective-C and Python. > > Is there any way to interface Ada with Objective-C (or Python) without > having a wrapper? Has anyone done this before? Hi, I don't know ObjectiveC, but about Python, even if there is no direct wrapper, it couldn't be difficult. Indeed, all the C API in Python use Pointers, so you just have to create your own wrapper like this: type PyObject_Ptr is new System.Address; function A_C_Function_Wrapper_To_Python(pyobj: PyObject_Ptr; ...) return SomeType; And so on. I did for MySQL and it's not a big deal, some times of course, you could have to write a littke C code to help you and bind your ada program with if (particularly when you want to access to structure field when you are not sure of the structure size, otherwise, you can still create the equivalent Ada Structure and map). I'm still thinking that everything than can me wrapped in C can me wrapped in Ada even if it's, the first time, a little bit more complicated but not so much. Sebastien