comp.lang.ada
 help / color / mirror / Atom feed
* bindings with Ada 2012 aspects
@ 2012-04-24 23:54 Jerrid Kimball
  2012-04-25  7:43 ` Martin
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Jerrid Kimball @ 2012-04-24 23:54 UTC (permalink / raw)


Hello!  Long time reader, first time poster.

Before I get started, remember that there is a friendly channel on 
Freenode IRC network dedicated to dicussing Ada and creating a general 
sense of community around the language.  The channel population (around 
60) would profit by any additional great conversation or insights that 
can be brought about.  Thanks!

In my spare time I've been tinkering with Ada 2012 and just happened to 
be working on making a C main play nicely with Ada tasking.  Anyway, 
long story short, I came to wanting to export some Ada subprograms for 
the C main to use, but I'm finding that either the appropriate aspects 
are broken in GNAT Pro 7.1w or my understanding of the new syntax is flawed.

As I see it, a pragma Export should be directly replaceable by 
interfacing aspects' aspect marks and definitions:

procedure Wait renames PO.Wait;
pragma Export (C, Wait, "wait");

becomes:

procedure Wait renames PO.Wait
    with Export => True, Convention => C, Link_Name => "wait";

Am I looking at what should be submitted to ACT as a bug?

Jerrid Kimball



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-05-03  0:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-24 23:54 bindings with Ada 2012 aspects Jerrid Kimball
2012-04-25  7:43 ` Martin
2012-04-25 12:09 ` Stephen Leake
2012-04-25 14:25   ` Jerrid Kimball
2012-04-26  1:47 ` Randy Brukardt
2012-04-27 20:23   ` Jerrid Kimball
2012-05-02 12:38   ` Natasha Kerensikova
2012-05-03  0:10     ` Randy Brukardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox