Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2000:
[Freeciv-Dev] Re: [FreeCiv-Cvs] thue: Move the seen field from the commo
Home

[Freeciv-Dev] Re: [FreeCiv-Cvs] thue: Move the seen field from the commo

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [FreeCiv-Cvs] thue: Move the seen field from the common map to the...
From: Thue Janus Kristensen <thue@xxxxxxx>
Date: Sat, 20 May 2000 12:20:47 +0200

> > One advantage of using pplayer more than playerid is that it 
> > provides some "type safety", in that its harder to accidently
> > use a unit_id or something, whereas playerid is just an int.
> 
> *Thue says something about wanting to use a strongly typed language
> instead of using arguments ilke that.*
> I agree with the type safety argument, and have indeed hunted down a
> nasty random secfault in my own code resulting from it :). But in a mature
> programming language that should not be an argument... Maybe we could
> define a type playerid and turn on a compiler option to be strictly
> warned of convertions.

s/argument/reason/g (It's nice to be able to formulate
yourself unambiguoisly)

-Thue



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