delorie.com/archives/browse.cgi | search |
From: | Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> |
Newsgroups: | comp.os.msdos.djgpp,comp.lang.c |
Subject: | Re: Recursions and Static declarations....?Is this wrong... |
Date: | 19 Jul 2002 10:48:00 GMT |
Organization: | Aachen University of Technology (RWTH) |
Lines: | 15 |
Message-ID: | <ah8qp0$sdn$1@nets3.rz.RWTH-Aachen.DE> |
References: | <5a91d0ef DOT 0207181004 DOT 49e67056 AT posting DOT google DOT com> <ah8k0q$lqv$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <ah8p8r$b1l$7 AT murdoch DOT hpl DOT hp DOT com> |
NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de |
X-Trace: | nets3.rz.RWTH-Aachen.DE 1027075680 29111 137.226.32.75 (19 Jul 2002 10:48:00 GMT) |
X-Complaints-To: | abuse AT rwth-aachen DOT de |
NNTP-Posting-Date: | 19 Jul 2002 10:48:00 GMT |
Originator: | broeker@ |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
In comp.os.msdos.djgpp kers AT hplb DOT hpl DOT hp DOT com wrote: > In article <ah8k0q$lqv$1 AT nets3 DOT rz DOT rwth-aachen DOT de>, > Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> writes: >> >> No, you can't. At least not sensibly, in the way you did it. You >> shouldn't be recursing for this, in the first place, nor should you >> ever use static variables to keep state across a recursion call. > Not even for such things as recording recursion depth for prettyprinting? Not in a useful way, if the static is local to the recursive function. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |