Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2005:
[Freeciv-Dev] Re: (PR#13474) a city_production struct
Home

[Freeciv-Dev] Re: (PR#13474) a city_production struct

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#13474) a city_production struct
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 18 Jul 2005 17:30:20 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13474 >

Vasco Alexandre da Silva Costa wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=13474 >
> 
> On Sun, 17 Jul 2005, Jason Short wrote:
> 
> 
>><URL: http://bugs.freeciv.org/Ticket/Display.html?id=13474 >
>>
>>Vasco Alexandre da Silva Costa wrote:
>>
>>>>Why does a unique identifier need to be an integer rather than a pointer
>>>>or a struct?
>>>
>>>Serialization. An integer is serializable and a pointer is not. This is
>>>important for network transmission of data and savedgames.
>>
>>Of course you can serialize a struct.  We do exactly that with
>>req_sources.  It doesn't even take any extra code (the analogue of
>>req_get_values would be needed inside cid_create anyway).
> 
> Right. But weren't you turning it into pointers?

Pointer-to-struct, of course ;-).

-jason





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