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

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

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Daniel L Speyer <dspeyer@xxxxxxxxxxx>
Cc: Arien Malec <arien_malec@xxxxxxxxx>, Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [RFC PATCH] init_tech
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 5 Oct 2001 23:16:02 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Fri, Oct 05, 2001 at 04:58:27PM -0400, Daniel L Speyer wrote:
> On Fri, 5 Oct 2001, Raimar Falke wrote:
> 
> > On Fri, Oct 05, 2001 at 04:00:06PM -0400, Daniel L Speyer wrote:
> > > On Fri, 5 Oct 2001, Raimar Falke wrote:
> > > 
> > > > On Fri, Oct 05, 2001 at 12:15:01PM -0700, Arien Malec wrote:
> > > > > 
> > > > > --- Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> > > > > > Can you give examples? Is someone working on this?
> > > > > 
> > > > > create tech automobile {
> > > > >    name = "Automobile";
> > > > >    req1 = ... }
> > > > > 
> > > > > (where braces might be parens, and semicolons might be commas)
> > > > > 
> > > > > No one is actively working on it. 
> > > > 
> > > > > I don't know what the status of the split function patch is --
> > > > > that's the infrastructure that comes first.
> > > > 
> > > > The interface of the split method depends a bit on the user. So far no
> > > > user has been mentioned.
> > > 
> > > For full power parethesi/quote handling, the split function will need to
> > > understand them (recombining accidentally split segments is too big a
> > > burden to put on later-stage elements). Does the present split do this?
> > 
> > What kind of power parethesi/quote handling are you talking about?
> > 
> > Should
> >  split("a(b)c",PARENTHESES)
> > be
> >  ["a","b","c"] ??
> > 
> 
> What I mean is 
>   split("hello {thing in {braces that} are nested} "{" world",whitespace)
> should return
>   ["hello","{thing in {braces that} are nested}","\"{\"","world"]

No the patch won't do this. And if there is such a method it shouldn't
be called split.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Python is executable pseudocode. Perl is executable line noise"
    -- Bruce Eckel


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