comp.lang.ada
 help / color / mirror / Atom feed
From: r_srinivasan@my-deja.com
Subject: Re: limited private types
Date: 2000/04/27
Date: 2000-04-27T00:00:00+00:00	[thread overview]
Message-ID: <8eaaa2$rkl$1@nnrp1.deja.com> (raw)
In-Reply-To: 3907DF77.5BD05EBE@quadruscorp.com

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" <mcondic-nospam@quadruscorp.com> 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.




  reply	other threads:[~2000-04-27  0:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-26  0:00 limited private types r_srinivasan
2000-04-26  0:00 ` Marin D. Condic
2000-04-27  0:00   ` r_srinivasan [this message]
2000-04-28  0:00     ` Jean-Pierre Rosen
2000-04-27  0:00 ` Ray Blaak
2000-04-27  0:00   ` r_srinivasan
2000-04-27  0:00     ` tmoran
2000-04-27  0:00 ` Marc A. Criley
  -- strict thread matches above, loose matches on Subject: below --
1988-12-03 23:10 Erland Sommarskog
1988-11-15 23:28 Ada language revision Wilmer Rivers
1988-11-16 19:06 ` William Thomas Wolfe,2847,
1988-11-18  0:32   ` Ron Guilmette
1988-11-22 14:37     ` Stephe Leake
1988-11-23 13:37       ` Dennis Doubleday
1988-11-29 15:12         ` limited private types Stephe Leake
1988-12-01 23:06           ` Ron Guilmette
1988-12-05  1:48             ` Paul Stachour
1988-12-06 16:56             ` ryer
1988-12-06 20:09             ` stt
1988-12-07 15:51             ` Stephe Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox