From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Hierarchical States Machines
Date: Thu, 29 Apr 2004 15:37:30 -0500
Date: 2004-04-29T15:37:30-05:00 [thread overview]
Message-ID: <266dnfzCrpUS-gzdRVn-gg@megapath.net> (raw)
In-Reply-To: 1649831.NvcpCQcTn1@linux1.krischik.com
"Martin Krischik" <krischik@users.sourceforge.net> wrote in message
news:1649831.NvcpCQcTn1@linux1.krischik.com...
...
> Is there any deepter reason why you did not use:
>
> loop
> <<continue>>
> <bunch of conditions>
> <Do some processing>
> if <unusual condition> then
> <Handle unusual case>
> goto Continue;
> end if;
> <bunch of else conditions>
> end if;
> <normal processing>;
> end loop;
>
> i.E. A style guide or a RM I am not aware of?
I usually want the loop head to be re-executed, so that if it gets modified
during maintenance (to a for-loop or a while-loop), it won't be necessary to
restructure the code. Besides, in most of these cases, the loop actually is
a while-loop, walking a list or other data structure.
Randy.
next prev parent reply other threads:[~2004-04-29 20:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-28 18:48 Hierarchical States Machines Fabien
2004-04-28 19:39 ` Marius Amado Alves
2004-04-28 19:57 ` Robert I. Eachus
2004-04-29 3:00 ` Randy Brukardt
2004-04-29 7:25 ` Martin Krischik
2004-04-29 20:37 ` Randy Brukardt [this message]
2004-04-29 12:10 ` Wojtek Narczynski
2004-04-29 3:58 ` Steve
2004-04-29 5:14 ` Robert I. Eachus
2004-04-29 6:36 ` tmoran
2004-04-29 16:36 ` Robert I. Eachus
2004-04-29 15:41 ` Marius Amado Alves
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox