Path: utzoo!utgpu!jarvis.csri.toronto.edu!dgp.toronto.edu!flaps Newsgroups: comp.lang.c From: flaps@dgp.toronto.edu (Alan J Rosenthal) Subject: Re: Declaration within a loop. Message-ID: <1989Sep27.185904.18985@jarvis.csri.toronto.edu> References: <2085@hydra.gatech.EDU> <1198@virtech.UUCP> Distribution: usa Date: 27 Sep 89 22:59:05 GMT cpcahil@virtech.UUCP (Conor P. Cahill) writes: >This kind of thing can be verified by creating a small source code file >and compiling it with the -S flag to get the assembly language. This statement is blatantly false (about anything about C). It confuses implementation with definition. To re-use the same variable cell each time through the loop is a valid implementation of deallocating it and reallocating it each time through the loop, because deallocating and allocating are inverse operations. This doesn't mean that the meaning of declaring a variable inside a loop in C is that it is allocated upon function entry. ajr