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,6353697ffeb79d16 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,CP1252 Path: g2news2.google.com!postnews.google.com!e20g2000vbn.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Encapsulating Ada.Direct_IO Date: Wed, 17 Nov 2010 15:03:06 -0800 (PST) Organization: http://groups.google.com Message-ID: <281f6339-4e5f-43b8-8ae2-cc7e1079ad7e@e20g2000vbn.googlegroups.com> References: <5ba4147a-6099-4a05-b548-09544f58247a@j18g2000yqd.googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1290034987 14142 127.0.0.1 (17 Nov 2010 23:03:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 17 Nov 2010 23:03:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e20g2000vbn.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET4.0C),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:16532 Date: 2010-11-17T15:03:06-08:00 List-Id: On Nov 17, 2:32=A0pm, Yannick Duch=EAne (Hibou57) wrote: > Le Wed, 17 Nov 2010 05:44:49 +0100, Bryan a =A0 > =E9crit:> Spec file: > > ... > > private > > =A0 package Byte_IO is new Ada.Direct_IO(Character); > > =A0 type File_Type is new Byte_IO.File_Type; > > end Big5_Text_IO; > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Why did you used a =93type new=94 ? Unless you give some reason, subtype = is =A0 > better better here File_Type was declared as a private type. You cannot complete a private type with a subtype. -- Adam