[Freeciv-Dev] Re: Map coordinate cleanups.
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
At 02:05 AM 01/08/18 -0400, Jason Dorje Short wrote:
>"Ross W. Wetmore" wrote:
>>
>
><snip>
>
>Nicely phrased.
>
>> There is perhaps a need to determine if real coordinates are normalized
>> and return that value without actually munging the values. But it is
>> rare. Hence is_normal<something> is a useful function, but not really
>> needed.
>
>I disagree with this; is_normal_<something> (or
>is_normalized_<something>) are very useful functions. Ideally,
>non-normalized (non-(wrapped and real)) coordinates should never be
>passed around; coordinates should be created normalized, have wrapping
>and realness checked every time they're changed, and always be passed
>around normalized. In this situation, there should be lots of
>assert(is_normal_<something>(x, y)) lines sitting around in the code.
>
>It is definitely needed.
Agreed, I stand corrected.
The asserts are definitely useful and (currently) needed :-).
>jason
Cheers,
RossW
- [Freeciv-Dev] Re: Map coordinate cleanups., (continued)
- [Freeciv-Dev] Re: Map coordinate cleanups., Ross W. Wetmore, 2001/08/17
- [Freeciv-Dev] Re: Map coordinate cleanups., Tony Stuckey, 2001/08/17
- [Freeciv-Dev] Re: Map coordinate cleanups., Gaute B Strokkenes, 2001/08/17
- [Freeciv-Dev] Re: Map coordinate cleanups., David Pfitzner, 2001/08/17
- [Freeciv-Dev] Re: Map coordinate cleanups., Ross W. Wetmore, 2001/08/18
- [Freeciv-Dev] Re: Map coordinate cleanups., Jason Dorje Short, 2001/08/18
- [Freeciv-Dev] Re: Map coordinate cleanups.,
Ross W. Wetmore <=
- [Freeciv-Dev] Re: Map coordinate cleanups., Raimar Falke, 2001/08/19
- [Freeciv-Dev] Re: Map coordinate cleanups., Jason Dorje Short, 2001/08/18
- [Freeciv-Dev] Re: Map coordinate cleanups., Raimar Falke, 2001/08/19
- [Freeciv-Dev] Re: Map coordinate cleanups., Arien Malec, 2001/08/19
- [Freeciv-Dev] Re: Map coordinate cleanups., Gregory Berkolaiko, 2001/08/18
- [Freeciv-Dev] Re: Map coordinate cleanups., Trent Piepho, 2001/08/18
- [Freeciv-Dev] Re: Map coordinate cleanups., Kevin Brown, 2001/08/18
- [Freeciv-Dev] Re: Map coordinate cleanups., Raimar Falke, 2001/08/19
- [Freeciv-Dev] Re: Map coordinate cleanups., Ross W. Wetmore, 2001/08/19
- [Freeciv-Dev] Re: Map coordinate cleanups., Ross W. Wetmore, 2001/08/19
|
|