[Freeciv-Dev] Re: Server/ruleset unification [Was [RFC PATCH] init_techs
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Tue, Sep 25, 2001 at 11:55:08AM -0700, Arien Malec wrote:
>
> --- Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> > > 1) The normal way to terminate a command is with '\n', but a create or
> > object
> > > set command is terminated with ';\n', since those sorts of commands are
> > likely
> > > to span lines
> >
> > This is bad since the seperation f the commands into the two groups
> > isn't obvious to the user.
>
> Alternatives are:
>
> 1) Require that all commands be ';\n' terminated (which is an annoyance for
> most commands)
> 2) Require that an object create or set be newline terminated (which makes it
> hard to read
> 3) Have different termination rules for the server command line & rulesets
> 4) Disallow the (IMHO) convenient multi-attribute setting in create & object
> set
I would vote for 1). It is just one extra keystroke.
> Mostly the object create will be done in rulesets & the object set will be
> done
> on command line (overrides of ruleset stuff), perhaps a reasonable solution is
> to make the 'create' command be the only oddball.
>
> > > 2) Many of the commands either take a simple attribute or an object spec.
> > An
> > > object spec can always be distingushed by the presence of the reserved
> > > word
> > > 'object'.
> >
> > Bad since "object" is redundant.
>
> For now, 'object' is redundant. The mention of 'tech' or 'player' will suffice
> to distinguish an object set from an attribute set. BUT (and the reason I
> introduced the keyword) that means that if we introduce a new object, it can't
> be the same name as an existing attribute. On reflection, that might be fine.
Can you show some examples of simple_set_statement and
object_set_statement. IMHO should these two be unified. So
set players Caesar ailevel hard; OR
set players.Caesar.ailevel=hard;
should be use the same syntax as a
set unit archer vison 2; OR
set unit.archer.vision=2;
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"USENET is *not* the non-clickable part of WWW!"
- [Freeciv-Dev] Server/ruleset unification & grammars [Was [RFC PATCH] init_techs], (continued)
- [Freeciv-Dev] Re: [RFC PATCH] init_techs, Reinier Post, 2001/09/24
- [Freeciv-Dev] Re: [RFC PATCH] init_techs, Raimar Falke, 2001/09/24
- [Freeciv-Dev] Re: [RFC PATCH] init_techs, Greg Wooledge, 2001/09/24
- [Freeciv-Dev] Server/ruleset unification [Was [RFC PATCH] init_techs], Arien Malec, 2001/09/24
- [Freeciv-Dev] Re: Server/ruleset unification [Was [RFC PATCH] init_techs], Raimar Falke, 2001/09/25
- [Freeciv-Dev] Re: Server/ruleset unification [Was [RFC PATCH] init_techs], Arien Malec, 2001/09/25
- [Freeciv-Dev] Re: Server/ruleset unification [Was [RFC PATCH] init_techs], Raimar Falke, 2001/09/25
- [Freeciv-Dev] Re: Server/ruleset unification [Was [RFC PATCH] init_techs], Arien Malec, 2001/09/25
- [Freeciv-Dev] Re: Server/ruleset unification [Was [RFC PATCH] init_techs],
Raimar Falke <=
- [Freeciv-Dev] Re: Server/ruleset unification [Was [RFC PATCH] init_techs], Arien Malec, 2001/09/25
- [Freeciv-Dev] Re: Server/ruleset unification [Was [RFC PATCH] init_techs], Daniel L Speyer, 2001/09/25
- [Freeciv-Dev] Re: Server/ruleset unification [Was [RFC PATCH] init_techs], Daniel Sjölie, 2001/09/26
- [Freeciv-Dev] Re: Server/ruleset unification [Was [RFC PATCH] init_techs], Justin Moore, 2001/09/26
- [Freeciv-Dev] Re: Server/ruleset unification [Was [RFC PATCH] init_techs], Daniel Sjölie, 2001/09/26
- [Freeciv-Dev] Re: Server/ruleset unification [Was [RFC PATCH] init_techs], Raimar Falke, 2001/09/26
- [Freeciv-Dev] Re: Server/ruleset unification [Was [RFC PATCH] init_techs], Arien Malec, 2001/09/28
- [Freeciv-Dev] commandline syntax and semantics (was: Server/ruleset unification), Reinier Post, 2001/09/28
- [Freeciv-Dev] Re: commandline syntax and semantics (was: Server/ruleset unification), Arien Malec, 2001/09/29
- [Freeciv-Dev] Re: commandline syntax and semantics (was: Server/ruleset unification), Reinier Post, 2001/09/30
|
|