comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <mcondic.auntie.spam@acm.org>
Subject: Re: The Dreaded "Missing Subunits"
Date: Thu, 19 Sep 2002 07:26:46 -0400
Date: 2002-09-19T11:27:26+00:00	[thread overview]
Message-ID: <amccau$b7f$1@slb3.atl.mindspring.net> (raw)
In-Reply-To: wccptvb9fv1.fsf@shell01.TheWorld.com

Here's a better idea than a file extension convention: Why not have all Ada
compilers allow the user to specify what the convention is for their
project? Most of the compilers I've seen have some ability already to store
configuration or initialization information in some manner. If its a
command-line compiler (id est, Gnat) it could be a switch set by the IDE or
there can be some special file for a project that identifies the convention
as well as other useful initialization & option stuff.

It may be handy from some kind of portability perspective or user
recognition perspective if everyone used the same filename extension to mean
the same thing, but I don't think its that necessary. An OS might not even
make much or any use of the extension to begin with, so for a given
implementation, it might not make much sense anyway. If the world can agree
on what the file name convention should be, fine. If not, the vendors need
only provide some reasonably easy means of specifying what the convention is
for a project and most of the problems go away.

MDC
--
======================================================================
Marin David Condic
I work for: http://www.belcan.com/
My project is: http://www.jast.mil/

Send Replies To: m c o n d i c @ a c m . o r g

    "I'd trade it all for just a little more"
        --  Charles Montgomery Burns, [4F10]
======================================================================

Robert A Duff <bobduff@shell01.TheWorld.com> wrote in message
news:wccptvb9fv1.fsf@shell01.TheWorld.com...
>
> Contrast with Ada, where GNAT wants .ads/.adb, Rational wants
> .1.ada/.2.ada, and AdaMagic wants .spc/.bdy.  I know GNAT and AdaMagic
> have ways of overriding the convention (not sure about Rational),
> but you have to go to extra trouble to use a convention different
> from what the compiler wants.  Wouldn't it be better if all Ada
> compilers supported the same file-naming conventions out of the box,
> without using nonstandard pragmas Source_File_Name and the like?
>
> What file-naming convention should I use, if I want to be
> portable across all compilers?  For C, the answer is easy.
> For Ada, it's not.
>






  parent reply	other threads:[~2002-09-19 11:26 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-12 22:49 The Dreaded "Missing Subunits" Peter Richtmyer
2002-09-13  8:16 ` Peter Amey
2002-09-13  8:51   ` Ada2005 temp solo child (was: " Peter Hermann
2002-09-14  2:33     ` Robert A Duff
2002-09-13  9:24   ` Emmanuel Briot
2002-09-13 20:46     ` Simon Wright
2002-09-14  0:25     ` Chad R. Meiners
2002-09-14  2:53     ` Robert A Duff
2002-09-14 20:20       ` Simon Wright
2002-09-16 13:48         ` Ted Dennison
2002-09-16 16:33           ` Keith Thompson
2002-09-17  2:42             ` Ted Dennison
2002-09-18 20:56           ` Robert A Duff
2002-09-19  8:26             ` Emmanuel Briot
2002-09-19  9:55             ` Preben Randhol
2002-09-19 10:53             ` Marc A. Criley
2002-09-19 11:26             ` Marin David Condic [this message]
2002-09-19 21:49             ` Dmitry A.Kazakov
2002-09-19  9:47               ` Preben Randhol
2002-09-20  2:42                 ` Dmitry A.Kazakov
2002-09-19 15:33                   ` Stephen Leake
2002-09-19 15:36                   ` Preben Randhol
2002-09-20 22:31                     ` Dmitry A.Kazakov
2002-09-16 15:10       ` Emmanuel Briot
2002-09-18 21:17         ` Robert A Duff
2002-09-18 22:41           ` Stephen Leake
2002-09-19  0:00             ` Robert A Duff
2002-09-19  1:39               ` Keith Thompson
2002-09-19 15:19                 ` Stephen Leake
2002-09-19  4:02               ` Larry Kilgallen
2002-09-19 15:24               ` Stephen Leake
2002-09-19 20:34               ` Randy Brukardt
2002-09-19 14:44           ` Peter Richtmyer
2002-09-19 20:25           ` Randy Brukardt
2002-09-13 17:15 ` Mark Johnson
2002-09-13 20:56 ` Stephen Leake
2002-09-13 20:58 ` Simon Wright
2002-09-16 17:28   ` Peter Richtmyer
2002-09-19 20:05     ` Brian Gaffney
  -- strict thread matches above, loose matches on Subject: below --
2002-09-19  1:41 Alexandre E. Kopilovitch
2002-09-19 14:25 ` Peter Hermann
2002-09-19 11:37 Grein, Christoph
2002-09-20  6:03 Grein, Christoph
2002-09-20  7:30 ` Preben Randhol
2002-09-20 14:01   ` Robert A Duff
2002-09-20  9:05 Grein, Christoph
replies disabled

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