[Freeciv-Dev] Re: [RFC PATCH] init_techs
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Fri, Oct 05, 2001 at 08:43:32AM -0700, Arien Malec wrote:
> The thread got co-opted:
>
> 1) The init_techs patch is still there, waiting for review. Many people
> approve
> of the idea. There are also two nation specific init_techs patches floating
> around; it might be a good idea for me to roll them into a master init_techs
> patch. But the first one still needs review.
>
> 2) The server syntax thread has concluded that a multi-attribute create/set
> syntax is a good idea.
Can you give examples? Is someone working on this?
> 3) There is some disagreement about whether the English name or a new
> identifier should be used to identify techs/nations/etc., with a slight
> leaning
> towards a new identifier (2 out of 3)
From a mail from you:
> In sum, our disagreement is: I would create a new identifier to
> refer to advances, etc., whereas you would use name_orig. Not much
> difference, and I won't argue if the consensus of the list is for
> name_orig rather than a new identifier.
I think that both aren't good. Because: the namespace of name_orig and
of the identifier is different. The first one will allow almost all
strings while the latter will restrict this. For example what
identifier will be created from "A.Smith's Trading Co." at least the
'.' and maybe also the '\'' and ' ' have to be converted:
"A_Smith_s_Trading_Co_". All lowercased: "a_smith_s_trading_co_". What
happens if there if a "A. Smith" and a "A' Smith" improvement.
I propose that the identifier doesn't depend on any actual data. The
identifier is choosen by the user and is used only for identifying a
certain object. The identifier won't change after the object has been
created. This is much like the current
"[building_asmiths_trading_co]".
Maybe I didn't understood it correctly and you mean that the
identifier is more like a variable than an id. Than you could do
things like:
a=create tech (...);
b=a; // assume deep copy
set b.name="asdda";
and
a=create tech (...);
a=create tech (...); // oops we losse the first one
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"Last year, out in California, at a PC users group, there was a demo of
smart speech recognition software. Before the demonstrator could begin
his demo, a voice called out from the audience: "Format c, return. Yes,
return." Damned short demo, it was.
- [Freeciv-Dev] Re: [RFC PATCH] init_techs, Raimar Falke, 2001/10/05
- [Freeciv-Dev] Re: [RFC PATCH] init_techs, Arien Malec, 2001/10/05
- [Freeciv-Dev] Re: [RFC PATCH] init_techs,
Raimar Falke <=
- [Freeciv-Dev] Re: [RFC PATCH] init_techs, Arien Malec, 2001/10/05
- [Freeciv-Dev] Re: [RFC PATCH] init_techs, Raimar Falke, 2001/10/05
- [Freeciv-Dev] Re: [RFC PATCH] init_tech, Daniel L Speyer, 2001/10/05
- [Freeciv-Dev] Re: [RFC PATCH] init_tech, Justin Moore, 2001/10/05
- [Freeciv-Dev] Re: [RFC PATCH] init_tech, Raimar Falke, 2001/10/05
- [Freeciv-Dev] Re: [RFC PATCH] init_tech, Daniel L Speyer, 2001/10/05
- [Freeciv-Dev] Re: [RFC PATCH] init_tech, Raimar Falke, 2001/10/05
- [Freeciv-Dev] Re: [RFC PATCH] init_techs, Reinier Post, 2001/10/09
- [Freeciv-Dev] Re: [RFC PATCH] init_techs, Raimar Falke, 2001/10/09
[Freeciv-Dev] Re: [RFC PATCH] init_techs, Ben Webb, 2001/10/05
|
|