Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2002:
[Freeciv-Dev] Re: [PATCH] Improvement effects speedup (PR#1094)
Home

[Freeciv-Dev] Re: [PATCH] Improvement effects speedup (PR#1094)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] Improvement effects speedup (PR#1094)
From: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx>
Date: Tue, 15 Jan 2002 18:22:52 -0800 (PST)

On Tue, 15 Jan 2002, Ben Webb wrote:

> What you're suggesting is that I write the function as
> 
> void try_update_effects(int do_i_really_do_it)
> {
>   if (!do_i_really_do_it) return;
> 
>   /* main function body */
> }
> 
> and this seems rather nonsensical, particularly as you could apply the 
> same argument to _any_ function. What happens if the function returns a 
> value?

It isn't nonsensical because:

a) void update_all_effects(void)
   It doesn't return any arguments.

b) A non-insignificant amount of calls is in this fashion.
c) There are other functions in Freeciv that work like that.

But i don't care *that* much about it.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa




[Prev in Thread] Current Thread [Next in Thread]