| Liste des Groupes | Revenir à l c |
bart <bc@freeuk.com> writes:This was adapted from Lane W's code. I was addressing the duplicated slog calls and the poor choice of enums.On 09/09/2026 15:25, Lane W wrote:So you assign sdodge up to three times. A waste of cycles.>You have 3 near-identical calls to slog(). And in this new version, NEAT
WHERE IS THIS DUPLICATION?
etc occur 3 times each (plus the enum names don't match what is printed
so are confusing).
>
Here's a version with only one call to slog:
>
char* sdodge = NULL;
>
if (dodge < 1.0)
sdodge = " hardly";
if (dodge < 0.9)
sdodge = "";
if (dodge < 0.5)
sdodge = " easily";
Les messages affichés proviennent d'usenet.