comp.lang.ada
 help / color / mirror / Atom feed
From: Jean-Pierre Rosen <rosen@adalog.fr>
Subject: Re: Negative float problem
Date: Thu, 03 Nov 2005 14:06:34 +0100
Date: 2005-11-03T14:06:34+01:00	[thread overview]
Message-ID: <k02dkd.s54.ln@hunter.axlog.fr> (raw)
In-Reply-To: <C79af.672$uD5.305@newsread3.news.pas.earthlink.net>

Jeffrey R. Carter a �crit :
> Jean-Pierre Rosen wrote:
> 
>> Since you are new to Ada, there is something that you must understand. 
>> The Ada language has been designed in such a way that either a 
>> construct always works, and works the same with every implementation, 
>> or does not compile. There is no space for "sometimes", "maybe", 
>> "depends", and other things like that that are common in other languages.
> 
> 
> Mostly. There are a number of "implementation defined" parts of the 
> language. What's the range of type Integer? At least that of a 16-bit 
> signed twos-complement integer, but often more. Luckily, you can define 
> your own integer types that match your application's needs, and not have 
> to rely on the predefined numeric types, as you have to do in most other 
> languages.
> 
> SPARK gets rid of most implementation-defined things, but type Integer 
> is still in there ...
> 
Sure, there are parts that are "implementation defined", but at least, 
you know precisely what they are. And bear in mind that "implementation 
defined" does not necessarily mean "non portable" (depends on your 
definition of "portable"). For example:

type Biggest_Int is range System.Min_Int .. System.Max_Int;

The range will vary with the implementation, but it will always be the 
biggest integer type available on your system.

-- 
---------------------------------------------------------
            J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr



  reply	other threads:[~2005-11-03 13:06 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-26 18:32 Negative float problem Luke
2005-10-26 19:05 ` Samuel Tardieu
2005-10-26 20:42 ` Robert A Duff
2005-10-27  8:05   ` Robert I. Eachus
2005-10-27 14:48     ` Robert A Duff
2005-10-27 15:07       ` Maciej Sobczak
2005-10-27 15:47         ` Robert A Duff
2005-10-28  8:34           ` Maciej Sobczak
2005-10-29 23:39             ` Brian May
2005-10-30  9:11             ` Dmitry A. Kazakov
2005-10-31  9:46               ` Maciej Sobczak
2005-10-31 14:20                 ` Dmitry A. Kazakov
2005-11-01 11:06                   ` Maciej Sobczak
2005-11-01 14:06                     ` Robert A Duff
2005-11-01 14:46                       ` Martin Dowie
2005-11-01 16:04                         ` Hyman Rosen
2005-11-01 17:19                           ` Martin Dowie
2005-11-02  0:13                         ` Robert A Duff
2005-11-02  6:59                           ` Martin Dowie
2005-11-02 13:24                             ` Robert A Duff
2005-11-02 15:22                               ` Martin Dowie
2005-11-01 15:12                       ` Maciej Sobczak
2005-11-02  0:28                         ` Robert A Duff
2005-11-02  4:16                           ` Steve Whalen
2005-11-14  7:26                           ` Dave Thompson
2005-11-20  0:19                             ` Robert A Duff
2005-11-20 11:07                               ` Dmitry A. Kazakov
2005-11-01 14:27                     ` Dmitry A. Kazakov
2005-11-01 15:19                       ` Maciej Sobczak
2005-11-01 19:44                         ` Dmitry A. Kazakov
2005-11-02  9:04                           ` Maciej Sobczak
2005-11-02 11:17                             ` Dmitry A. Kazakov
2005-11-02 13:03                               ` Maciej Sobczak
2005-11-02 14:20                                 ` Jean-Pierre Rosen
2005-11-02 20:15                                   ` Jeffrey R. Carter
2005-11-03 13:06                                     ` Jean-Pierre Rosen [this message]
2005-11-03 18:32                                       ` Jeffrey R. Carter
2005-11-03  9:51                                   ` Maciej Sobczak
2005-11-03 13:20                                     ` Jean-Pierre Rosen
2005-11-03 15:02                                       ` Maciej Sobczak
2005-11-03 18:55                                         ` Frank J. Lhota
2005-11-04  9:32                                           ` Maciej Sobczak
2005-11-03 20:59                                     ` Simon Wright
2005-11-02 13:32                               ` Robert A Duff
2005-11-02 14:44                                 ` Dmitry A. Kazakov
2005-11-02 13:47                               ` Dmitry A. Kazakov
2005-10-27 18:33       ` Dmitry A. Kazakov
replies disabled

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