[Freeciv-Dev] Re: (PR#12706) Events framework
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12706 >
On Mon, 2 May 2005, Jason Short wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=12706 >
>
> > [vasc - Sun May 01 21:13:28 2005]:
> >
> > Hello,
> >
> > The events framework is in CVS. Now it needs some actions to be useful.
> > This patch implements a bunch of actions, as well as fixing the notify
> > module. The Wiki page will be updated soon to reflect the changes.
> > The page it is at:
> > http://www.freeciv.org/index.php/Events_specification
>
> It is basically no good to have the event types be enumerated in two
> separate places.
I see no solution to this problem. And I tried. The "best" solution
involves using name strings and a table. Of course, the table
instantiation and the enum declaration will not be in the same file, so
once again you will have two files.
So unless you want to write a pre-processor or code generator, this is the
best we can do.
---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa
- [Freeciv-Dev] Re: (PR#12706) Events framework,
Vasco Alexandre da Silva Costa <=
|
|