comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: generic packages and dispatched operations
Date: Wed, 21 Feb 2001 10:00:56 -0500
Date: 2001-02-21T15:01:54+00:00	[thread overview]
Message-ID: <970l92$18f$1@nh.pace.co.uk> (raw)
In-Reply-To: 96vq2l$mqg$1@news.kiev.sovam.com

You failed to post any code so nobody can check to see if what you are
interested in will compile with a compiler other than GNAT and/or Aonix.
Please post again - maybe we can help.

While Ada does not have any "dialects" allowed within the standard, that
does not mean that you cannot write code that is specific to one compiler.
First, the standard itself allows for no subsets or supersets within the
*standard*, but a compiler is free to implement anything it likes. A
compiler can (and some do - notably GNAT) provide a subset and/or superset
of the language - it just needs some mode in which it compiles the standard
language. (Important to note here is that this is *only* important if you
want your compiler *validated*. If you have no intentions of validating the
compiler, you can do anything you want.)

Also, just because a compiler adheres to the standard and is validated,
doesn't mean that you can't write implementation specific code. Two simple
examples: One is where you write a program that "withs" a package supplied
only by your specific compiler. (Say, for example, a package of math
functions supported by your compiler that are not part of the standard)
Another is where you may write code that takes advantage of allowable
implementation specific data types such as Long_Long_Float - the standard
allows it to exist, but doesn't require it be there for machines on which
this would be difficult to implement.

Hope you find this helpful.

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/



"Maxim Reznik" <max1@mbank.com.ua> wrote in message
news:96vq2l$mqg$1@news.kiev.sovam.com...
> Hey! Please!
>
> Could anybody compile this program on compilers different from GNAT or
Aonix?
>
> Could anybody say if this program conform with ada 95 ?
>
> It isn't too long programm, really.
> Thank you.
>
> PS. you speak about new release of Ada and say there is only one dialect
of Ada.
> So is it difficult to answer two such simple questions?
>
>
>
> --
> Maxim Reznik
> email:  <reznikmm@hotmail.com>
> ICQ: 18702307
>
>
>





  reply	other threads:[~2001-02-21 15:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <96r871$1g5g$1@news.kiev.sovam.com>
2001-02-21  7:17 ` generic packages and dispatched operations Maxim Reznik
2001-02-21 15:00   ` Marin David Condic [this message]
     [not found]     ` <972rh2$26gk$1@news.kiev.sovam.com>
     [not found]       ` <97gmv4$3cf$1@a1-hrz.uni-duisburg.de>
2001-02-28 13:19         ` Marc A. Criley
2001-02-28 14:01       ` Tucker Taft
2001-03-02 12:31         ` Maxim Reznik
replies disabled

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