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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ba2f8edf6a585206 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-20 12:39:32 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!gnilink.net!peer01.cox.net!peer02.cox.net!cox.net!news-server.columbus.rr.com!cyclone2.kc.rr.com!news2.kc.rr.com!twister.socal.rr.com.POSTED!53ab2750!not-for-mail Sender: kst@nuthaus.mib.org Newsgroups: comp.lang.ada Subject: Re: File_Type References: <61f665c0.0404180417.72855af4@posting.google.com> <2004420-10826-784447b@foorum> From: Keith Thompson Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 20 Apr 2004 19:39:31 GMT NNTP-Posting-Host: 66.91.248.166 X-Complaints-To: abuse@rr.com X-Trace: twister.socal.rr.com 1082489971 66.91.248.166 (Tue, 20 Apr 2004 12:39:31 PDT) NNTP-Posting-Date: Tue, 20 Apr 2004 12:39:31 PDT Organization: RoadRunner - West Xref: archiver1.google.com comp.lang.ada:7366 Date: 2004-04-20T19:39:31+00:00 List-Id: Ludovic Brenta writes: > Jorge Suarez-Solis Rivaya asked: > > Is there anyway to use an Integer Type like a File_Type?, > > Is there anyway to asign a File_Type the value 3? > > Yes, there is, on Unix and Unix-like operating systems; perhaps also > on others as well. The way to achieve this is to write a thin binding > to the operating system's file management functions, like so: > > package Low_Level_IO is [...] You might want to pick a different name. If I recall correctly, Low_Level_IO was the name of a predefined package in Ada 83. It was optional, and I'm not even sure anybody ever implemented it, but it's best to avoid name collisions. -- Keith Thompson (The_Other_Keith) kst-u@mib.org San Diego Supercomputer Center <*> Schroedinger does Shakespeare: "To be *and* not to be"