From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23145 invoked by alias); 26 Sep 2002 21:05:36 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23138 invoked from network); 26 Sep 2002 21:05:35 -0000 Received: from unknown (HELO zenia.red-bean.com) (66.244.67.22) by sources.redhat.com with SMTP; 26 Sep 2002 21:05:35 -0000 Received: (from jimb@localhost) by zenia.red-bean.com (8.11.6/8.11.6) id g8QKo7415399; Thu, 26 Sep 2002 15:50:07 -0500 To: Daniel Jacobowitz Cc: gdb@sources.redhat.com, fnasser@redhat.com Subject: Re: RFC: Additional testsuite alternative References: <20020916192546.GA6174@nevyn.them.org> <20020926182132.GA26853@nevyn.them.org> From: Jim Blandy Date: Thu, 26 Sep 2002 14:05:00 -0000 In-Reply-To: <20020926182132.GA26853@nevyn.them.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.90 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-09/txt/msg00456.txt.bz2 It's a pity to implement a little language in Tcl. People always introduce little languages, saying, "I just need a very simple language for this one situation; I don't need anything complex." And then, minor feature by minor feature, it grows, until you've got the Bourne shell. Doesn't the Tcl we're using nowadays have namespaces? Can't we make .x files just Tcl scripts that run in a namespace that has all the right commands in it? Then Daniel's example: #compile two.cc two.exe executable debug #runto main #test "ptype StrOne" type = class OneStruct { public: int simple; [synthetic OneStruct]} #test "ptype ConstStrOnePtr" type = const class OneStruct { public: int simple; [synthetic OneStruct]} \* could just be: compile two.cc two.exe executable debug runto main test "ptype StrOne" { type = class OneStruct { public: int simple; [synthetic OneStruct]} } test "ptype ConstStrOnePtr" { type = const class OneStruct { public: int simple; [synthetic OneStruct]} \* } And you've got all your quoting stuff, comments, substitution, etc for free. Designed carefully, not grown incrementally.