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]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#13474) a city_production struct
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Mon, 18 Jul 2005 16:40:17 -0700
Reply-to: bugs@xxxxxxxxxxx

<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?

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa







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