From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,141791b1b1db9b37 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: "Rick Santa-Cruz" Newsgroups: comp.lang.ada Subject: Re: Integer-Types Date: Tue, 5 Oct 2004 03:12:39 +0200 Organization: T-Online Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.t-online.com 1096938760 04 32188 8mvmX2LJYPEuEkl 041005 01:12:40 X-Complaints-To: usenet-abuse@t-online.de X-ID: ZN++AgZYwesopvqSPnlkmPUWZb0R8pkE-yF9UkcynI7iT0LNARPA4Z X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response Xref: g2news1.google.com comp.lang.ada:4697 Date: 2004-10-05T03:12:39+02:00 List-Id: 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