comp.lang.ada
 help / color / mirror / Atom feed
From: "Rick Santa-Cruz" <rick_santa_cruz75@msn.com>
Subject: Re: Integer-Types
Date: Tue, 5 Oct 2004 03:12:39 +0200
Date: 2004-10-05T03:12:39+02:00	[thread overview]
Message-ID: <cjsse8$vds$04$1@news.t-online.com> (raw)
In-Reply-To: Jbm8d.2836$UP1.2692@newsread1.news.pas.earthlink.net

Hi,

thanks for the fast answer!

>
> New_Int is an integer type with a range of 1 .. 1_000_000. New_Int'Base 
> will be chosen by the compiler.
>
> New_Int1 is an integer type with a range of 1 .. 1_000_000. New_Int1'Base 
> has the same representation as Integer. Thus New_Int1 is similar to
So this means the main difference is, that without the "new" the compiler 
will choose the Base-Type (for example a short-int) and in the second case I 
explicitly decide which is the base-type. Is this correct?

Is there somewhere a summing-up in which contexts I can use the keyword 
"new"?
I know some:
1.) For declaring a new type
2.) For deriving from tagged-types
3.) For using with pointers... that means for creating a pointer-object.
4.) In the context of the instantiation of generics
Are there more?

Bye,
Rick 





  reply	other threads:[~2004-10-05  1:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-04 23:54 Integer-Types Rick Santa-Cruz
2004-10-05  0:48 ` Integer-Types Jeffrey Carter
2004-10-05  1:12   ` Rick Santa-Cruz [this message]
2004-10-05 19:37     ` Integer-Types Jeffrey Carter
2004-10-05  1:23 ` Integer-Types Stephen Leake
2004-10-05  9:58   ` Integer-Types Rick Santa-Cruz
replies disabled

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