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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cee3b2eca7424dea X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!news.glorb.com!tudelft.nl!130.161.131.117.MISMATCH!tudelft.nl!newsfeed.multikabel.nl!skynet.be!grolier!usenet-fr.net!teaser.fr!titine.scrogneugneu.org!not-for-mail From: Eric Jacoboni Newsgroups: comp.lang.ada Subject: Re: Newbie problem: unconstrained subtype not allowed Date: Wed, 20 Apr 2005 01:52:11 +0200 Organization: Rogntutdju Media Inc. Message-ID: References: NNTP-Posting-Host: 192.168.2.3 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: titine.scrogneugneu.org 1113954842 58320 192.168.2.3 (19 Apr 2005 23:54:02 GMT) X-Complaints-To: usenet@titine.scrogneugneu.org NNTP-Posting-Date: Tue, 19 Apr 2005 23:54:02 +0000 (UTC) X-Attribution: Jaco User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (darwin) Cancel-Lock: sha1:NQUh+nZlqs7bh+pEe7STUEjnkzE= Xref: g2news1.google.com comp.lang.ada:10592 Date: 2005-04-20T01:52:11+02:00 List-Id: frankgerlach@gmail.com (Frank Gerlach) writes: > feldEA : Ada.Streams.Stream_Element_Array; > > How do I "initialize" this data type ? > > Thanks for helping an Ada newbie ! Type Stream_Element_Array is an unconstrained type: type Stream_Element_Array is array (Stream_Element_Offset range <>) of aliased Stream_Element; So, you have to constraint it to create a object of this type: A_Stream_Element_Array : Stream_Element_Array(1..100); for exemple (a better solution is to use a constrained subtype, but you've got the idea). -- �ric Jacoboni, n� il y a 1417398423 secondes