[Freeciv-Dev] Re: (PR#13474) a city_production struct
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<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
- [Freeciv-Dev] Re: (PR#13474) a city_production struct, Benoit Hudson, 2005/07/14
- [Freeciv-Dev] Re: (PR#13474) a city_production struct, Jason Short, 2005/07/14
- [Freeciv-Dev] Re: (PR#13474) a city_production struct, Vasco Alexandre da Silva Costa, 2005/07/15
- [Freeciv-Dev] Re: (PR#13474) a city_production struct, Vasco Alexandre da Silva Costa, 2005/07/15
- [Freeciv-Dev] Re: (PR#13474) a city_production struct, Benoit Hudson, 2005/07/15
- [Freeciv-Dev] Re: (PR#13474) a city_production struct, Jason Short, 2005/07/15
- [Freeciv-Dev] Re: (PR#13474) a city_production struct, Jason Short, 2005/07/15
- [Freeciv-Dev] Re: (PR#13474) a city_production struct, Vasco Alexandre da Silva Costa, 2005/07/16
- [Freeciv-Dev] Re: (PR#13474) a city_production struct, Jason Short, 2005/07/17
- [Freeciv-Dev] Re: (PR#13474) a city_production struct, Vasco Alexandre da Silva Costa, 2005/07/18
- [Freeciv-Dev] Re: (PR#13474) a city_production struct,
Jason Short <=
- [Freeciv-Dev] (PR#13474) a city_production struct, Jason Short, 2005/07/23
|
|