Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: [RFC PATCH] init_techs
Home

[Freeciv-Dev] Re: [RFC PATCH] init_techs

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Arien Malec <arien_malec@xxxxxxxxx>
Cc: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [RFC PATCH] init_techs
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 5 Oct 2001 18:07:26 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

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.


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