Mail Archives: djgpp/1998/07/19/10:01:37
Destination: Erik Max Francis <max AT alcyone DOT com>
From: Gruber Gerhard
Group: comp.os.msdos.djgpp
Date: Sat, 18 Jul 1998 03:26:18 -0700:
>> I just used main. You can use any other function as main is not really
>> special
>> as a function.
>
>Your example involved a block off of main, which is what I was talking
>about.
Well. And if next time I write foo() instead of main, then you argue that foo
is not a proper function or that this doesn't apply to foo as well?
>If c isn't being created and destructed every iteration of the loop,
>you've got a problem.
That's right.
>Again: construction/destruction and reservation of memory on the stack
>aren't necessarily one and the same, although I'm not even sure that
>your statement about that standard behavior is true. (It certainly
>isn't required by the C/C++ function model.)
I never said that this is required by the stanrd, but usually compiler do it
this way.
--
Bye,
Gerhard
email: sparhawk AT eunet DOT at
g DOT gruber AT sis DOT co DOT at
Spelling corrections are appreciated.
- Raw text -