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, MSGID_RANDY 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: r_srinivasan@my-deja.com Subject: Re: limited private types Date: 2000/04/27 Message-ID: <8eaaa2$rkl$1@nnrp1.deja.com>#1/1 X-Deja-AN: 616498346 References: <8e7jbb$s0h$1@nnrp1.deja.com> <3907DF77.5BD05EBE@quadruscorp.com> X-Http-Proxy: 1.0 tammy.geics.ge.com:80 (Squid/2.2.STABLE4), 1.0 x27.deja.com:80 (Squid/1.1.22) for client 3.29.30.84, 206.189.239.171 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Apr 27 21:09:34 2000 GMT X-MyDeja-Info: XMYDJUIDr_srinivasan Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) Date: 2000-04-27T00:00:00+00:00 List-Id: An array of File_Type might well do the trick even though I might have to think up some arbitrary limits to this array. while not too elegent, will do the trick. Thank you. In case it matters the application is a "C" preprocessor (like) that supports inclusion of other files . I would rather not have to close and reopen/seek etc. regards srini In article <3907DF77.5BD05EBE@quadruscorp.com>, "Marin D. Condic" wrote: > 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] > ====================================================================== > Sent via Deja.com http://www.deja.com/ Before you buy.