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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,15b980291302dd26 X-Google-Attributes: gid103376,public From: "Marin D. Condic" Subject: Re: limited private types Date: 2000/04/26 Message-ID: <3907DF77.5BD05EBE@quadruscorp.com>#1/1 X-Deja-AN: 616189758 Content-Transfer-Encoding: 7bit References: <8e7jbb$s0h$1@nnrp1.deja.com> Organization: Quadrus Corporation X-Sender: "Marin D. Condic" (Unverified) X-Server-Date: 27 Apr 2000 03:36:14 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-04-27T03:36:14+00:00 List-Id: r_srinivasan@my-deja.com wrote: > I am developing a file processing application that requires opening and > closing of an unspecified number of files. Ideally i would like to > build a "stack" of "files". Well, one possible alternative is to store the information necessary to open and close the file rather than the file itself. (The string for the name, etc.) Of course this depends on if you have to have them open all at once or not. There's probably other ways, but I have not given it enough thought just yet. In general, I'd consider it a bad idea to have lots of files open all at once if it can be avoided. Better to open and close them as needed. If you do need them open all at once, maybe you could collect up the names and once the number is known, allocate an array of File_Type that matches the number you need. What exactly are the requirements? There may be a better alternative. MDC -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "I'd trade it all for just a little more" -- Charles Montgomery Burns, [4F10] ======================================================================