Re: static vars question

From: Date: Sat, 31 May 2003 00:23:59 +0000
Subject: Re: static vars question
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-149620@lists.php.net to get a copy of this message
Ernest, I'm not _that_ clueless :-) As I said, since I was recursing through the function by calling it numerous times in the middle of its execution, and since the function didn't explicitly return, I didn't expect it to continue past each call. That's all! Martin Ernest E Vogelsinger <ernest@vogelsinger.at> wrote in message news:5.1.1.6.2.20030531012403.04360a48@mail.vogelsinger.at... > At 00:27 31.05.2003, Martin Helie said: > --------------------[snip]-------------------- > >yes, I am familiar with these concepts; I am just starting to experiment > >with recursive functions and static variables. Thanks for explaining that > >once the function is called and completed, the rest of the first call > >continues executing normally. That is what surprised me. > --------------------[snip]-------------------- > > Martin, > > then you should be surprised that message based systems work at all - stuff > like XWin, and (yes ;->) even Windoze work exactly like this. Thanks heaven > that language inventors allow functions to continue after they call > others... Maybe you mixed this up with gotos, these never return. Thanks to > Andi Gutman and Zeev Suraski that there's no goto in PHP *smile* > > > -- > >O Ernest E. Vogelsinger > (\) ICQ #13394035 > ^ http://www.vogelsinger.at/ > >

« previous php.general (#149620) next »