On Fri, Jul 3, 2009 at 2:00 AM, Madeline
Book<no-reply.invalid-addr...@gna.org> wrote:
> I also prefer the 0 rule because if we realize that
> case labels are essentially the same as goto labels,

Yesterday I was genuinely tempted for a minute to write some map
guessing code as:

  switch (tile_get_known(ptile)) {
  case TILE_KNOWN_FOGGED:
    if (guessed_terrain->index == ptile->terrain->index) {
  case TILE_KNOWN:
      if (is_resource_valid(something_or_other)) { ... }
    }
    break;
    ...

I am going to assume that taking full advantage of the realization is
Strictly Verboten!

_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to