httpd-dev mailing list archives

But the real reason for all this is that C doesn't allow you to declare
a variable exactly at the moment when you need it.
It really sucks for example, to have a loop variable declared somewhere
200 lines above your loop.
So the conclusion is:
LONG LIVE C++!
(classes are cool but even small things like this one make it better than
C, in my opinion)
igor
Dean Gaudet wrote:
>
> Have I mentioned lately that I really hate auto initializations?
>
> type variable = initializer;
>
> In my opinion, using initializers tends to:
>
> - create long lines that need to be broken
>
> - create inefficient code, because sometimes the value isn't needed at
> at until after an initial test that leaves the function immediately.
> And if the initializer does something like get_module_config (like
> a lot of them do) then it's a total waste of time.
>
> - create silly bugs caused by values being initialized far from their
> use
>
> Dean
Dean Gaudet wrote:
>
> On Wed, 4 Feb 1998, Igor Tatarinov wrote:
>
> > Yeah, right I wasn't careful in my comments. Each ka requests costs
> > only sizeof(request_rec)=340 (on my Solaris).
>
> Thanks for the hint. I fixed the leak.
>
> Have I mentioned lately that I really hate auto initializations?
>
> type variable = initializer;
>
> In my opinion, using initializers tends to:
>
> - create long lines that need to be broken
>
> - create inefficient code, because sometimes the value isn't needed at
> at until after an initial test that leaves the function immediately.
> And if the initializer does something like get_module_config (like
> a lot of them do) then it's a total waste of time.
>
> - create silly bugs caused by values being initialized far from their
> use
>
> Dean
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Igor Tatarinov, graduate student, Computer Science Dept, NDSU
e-mail: tatarino@prairie.nodak.edu or itat@acm.org
http://www.cs.ndsu.nodak.edu/~tatarino
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~