comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: ANN: Ahven 1.8
Date: Sun, 06 Jun 2010 17:45:14 +0100
Date: 2010-06-06T17:45:14+01:00	[thread overview]
Message-ID: <m2ocfo3yat.fsf@pushface.org> (raw)
In-Reply-To: 87mxv8rv35.fsf@ludovic-brenta.org

Ludovic Brenta <ludovic@ludovic-brenta.org> writes:

> Stephen Leake writes:
>> Ludovic Brenta <ludovic@ludovic-brenta.org> writes:
>>
>>> Simon Wright <simon@pushface.org> writes:
>>>> Tero Koskinen <tero.koskinen@iki.fi> writes:
>>>>
>>>>>  * AUnit is Ada 2005 code only and I think it can be compiled
>>>>>    only with GNAT (not 100% sure since I haven't tried it with
>>>>>    other Ada 2005 compilers)
>>>>
>>>> The 2005-ness occurs because AUnit uses a private copy of
>>>> Ada.Containers.Lists with some 05 constructs removed so that it can be
>>>> compiled with "an" Ada 95 compiler.
>>>>
>>>> Unfortunately, what they mean is "with an Ada 95 compiler that
>>>> recognises pragma Ada_2005 to mean that some Ada 2005 constructs are
>>>> permitted even when compiling in Ada 95 mode".
>>>>
>>>> This doesn't include older GNATs, and certainly won't include compilers
>>>> from other vendors.
>>>>
>>>> These patches update the current SVN source of AUnit to work with older
>>>> GNATs. Ask me if you need a copy and the news system has mangled them or
>>>> I've failed to drive Emacs correctly ...
>>>
>>> Stephe, how about applying this patch to Debian's version of AUnit?
>>
>> I don't see why. Debian supports the current version of GNAT, which
>> supports the current Debian version (and newer AdaCore versions) of
>> AUnit. 
>
> The current version of GNAT (in Debian) allows compiling Ada 83, Ada 95
> and Ada 2005 programs.  I think that allowing Ada 95 programs to use
> AUnit is better than forbidding this.  So the main objection is that
> this patch requires changing the aliversion; I would undertand that you
> wouldn't want to do that.

Ludovic,

I think it's very likely that the current Debian GNAT supports AUnit 3's
use of this pragma, even in -gnat95 mode ... OK, just tried in a VM
running (sorry for my ignorance about the Debian release name) Debian 5,
GNAT 4.3.2, and it says ..

   simon@nidhoggr-d:/mnt/hgfs/simon/AUnit-svn/aunit/containers$ gnatmake -gnat95 ada_containers-aunit_lists.adb -c -u -f -I../framework
   gcc-4.3 -c -gnat95 -I../framework ada_containers-aunit_lists.adb
   simon@nidhoggr-d:/mnt/hgfs/simon/AUnit-svn/aunit/containers$

which looks good to me. So no need for any change.

--S



  reply	other threads:[~2010-06-06 16:45 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-02 16:24 ANN: Ahven 1.8 Tero Koskinen
2010-06-03 12:08 ` Stephen Leake
2010-06-03 19:36   ` Dan
2010-06-03 19:43     ` Dan
2010-06-04  9:17     ` Stephen Leake
2010-06-04 15:37       ` Tero Koskinen
2010-06-05 12:41         ` Simon Wright
2010-06-05 19:17           ` Ludovic Brenta
2010-06-06 12:31             ` Stephen Leake
2010-06-06 16:20               ` Ludovic Brenta
2010-06-06 16:45                 ` Simon Wright [this message]
2010-06-06 17:48                   ` Ludovic Brenta
2010-06-07  8:26                 ` Stephen Leake
2010-06-07 19:21                   ` Simon Wright
2010-06-04 17:12       ` Dan
2010-06-05  4:08         ` Stephen Leake
2010-06-08 15:24 ` Jérôme Haguet
replies disabled

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