Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] Re: (PR#8800) [RFC] Usage of speclist vs specvec
Home

[Freeciv-Dev] Re: (PR#8800) [RFC] Usage of speclist vs specvec

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#8800) [RFC] Usage of speclist vs specvec
From: "Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Sat, 22 May 2004 04:17:40 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8800 >

On Sat, May 22, 2004 at 04:02:52AM -0700, Vasco Alexandre da Silva Costa wrote:
> How about just assuming the programmer knows what he/she is doing
> and making the API serve him instead of getting in his way? This
> sort of thing just makes code even more opaque and harder to
> understand.

It is about abstraction. The programmer doesn't have to know how it is
implemented. He doesn't have to know because in the almost all cases
it makes no difference in the runtime and in the interface.

There would be a DEFAULT flag for init.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  "The primary purpose of the DATA statement is to give names to
   constants; instead of referring to pi as 3.141592653589793 at every
   appearance, the variable PI can be given that value with a DATA
   statement and used instead of the longer form of the constant. This
   also simplifies modifying the program, should the value of pi
   change."
    -- FORTRAN manual for Xerox Computers




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