On Friday, August 6, 2010 at 9:16, Adriaan van Os wrote:
Are there e.g. Ada GNUStep and Cocoa bindings ? I can't find them on the web.
I know absolutely nothing about the Mac or its interfacing requirements, but there appears to be a project here:
http://code.google.com/p/cocoa-gnat/
...that might be applicable.
On Friday, August 6, 2010 at 9:40, Jonas Maebe wrote:
I think Adriaan was referring to an extension of the Ada language that enables direct interfacing with Objective-C code (including defining subclasses, categories, ...), similar Objective-C++, Objective-Modula2 and Objective-Pascal.
OK, thanks, I did misunderstand that. I doubt that an extended version of Ada would exist that added language features to facilitate interfacing to a specific platform API. Ada does have support for interfacing to other languages (C, C++, COBOL, and Fortran), although this is in the form of pragmas that control data layout, e.g., row-major vs. column-major array order, and packages that provide types and procedures/functions compatible with the target language. The above project appears to be an interface package (called a "binding" in Ada) of this form.
See, for example:
http://www.adaic.org/standards/05rm/html/RM-B-1.html
and:
http://www.adaic.org/standards/05rm/html/RM-B-3.html
-- Dave