[Freeciv-Dev] Re: generalized unit capabilities
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Wed, Dec 05, 2001 at 12:33:38PM -0500, Andrew Sutton wrote:
> On Wednesday 05 December 2001 12:11 pm, Raimar Falke wrote:
> > cvs diff -u
> > diff -u
>
> gotcha. patch reattached with cvs diff -u. i also rolled back the registry
> change since it turns out i didn't need it.
>
> > patch(1) and the maintainers will catch this.
> >
> > > besides, when has structure ever been a bad thing :)
> >
> > It is the same as OO: yes it may be better but I still see no benefit
> > of the change/problems with the current code.
>
> its nothing like OO. it's still a bitfield.
Reread my paragraph. I'm talking about the technical structure.
> it's just an extended bitfield with named bytes in addition to named
> flags. if you don't supply the category for flags then your bits end
> up as a 64 bit value. then, this has to be split on lookups. i guess
> if you mean the "scoped" names, then you're right, but i still don't
> see that as a bad thing.
>
> people have been talking about the desire for generalized unit capabilities
> for a while now. you yourself admitted that it was a shortcoming - if not
> immediately, then eventually. now you say that there's no benefit? this is
> just an additive patch.
> it won't affect any part of the game that chooses not to use it...
No code uses it -> it is useless.
> > I was thinking that the 100 lines would include comments.
> >
>
> just curios. how would you do it?
See the attached patch. Ok it uses 175 lines, isn't tested and doesn't
contain the capability tests.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
+#if defined(__alpha__) && defined(CONFIG_PCI)
+ /*
+ * The meaning of life, the universe, and everything. Plus
+ * this makes the year come out right.
+ */
+ year -= 42;
+#endif
-- Patch for 1.3.2 (kernel/time.c) from Marcus Meissner
diff
Description: Text document
[Freeciv-Dev] Re: generalized unit capabilities, Vasco Alexandre Da Silva Costa, 2001/12/05
|
|