From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5173 invoked by alias); 1 May 2010 21:02:47 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 27941 Received: (qmail 22365 invoked from network); 1 May 2010 21:02:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_FRT_ADULT2 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at dorfelite.net does not designate permitted sender hosts) Date: Sat, 01 May 2010 23:02:28 +0200 From: Christoph Kappel To: Cc: Message-ID: <12855ad6dba.6318419370147111815.5595086135333789265@dorfelite.net> In-Reply-To: References: <12854b73c24.-5662614641985446414.-6364714751911043221@dorfelite.net> <1285584468e.-5976807992945925025.-2686280647114173652@dorfelite.net> Subject: Re: Added builtins per runtime MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Priority: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail That was exactly my question. Can a module change it's features per runtime= ?=20 Generally the use of the word feature in the doc is really confusing, readi= ng the coding makes it's even worse when a feature struct contains lists of builti= ns,=20 condistions etc. which are called features too. The doc also doesn't make very clear what abstracts. I basically want to provide a builtin/feature/whatever that provides a way = to add actions in another language - ruby in my case. ---- On Sat, 01 May 2010 22:49:48 +0200 Bart Schaefer wrote ----=20 >On Sat, May 1, 2010 at 1:17 PM, Christoph Kappel w= rote:=20 >>=20 >> I want to add new ones per runtime.I am currently trying to maintain a s= econd list=20 >> and call addbuiltin() when I need to add one.=20 >=20 >I guess I'm not understanding the question, then. Can you give an=20 >example of what it means to you to "add new ones per runtime"? What=20 >would it mean for example.c to "change" the builtins that it defines?=20 >=20 >Modules define features, which can be several different kinds of=20 >things including builtins. None of a module's features is available=20 >until the module is loaded. Once a module is loaded, you can't alter=20 >the set of features it provides, though the zmodload command can=20 >enable and disable specific features to make them visible or invisible=20 >to the shell.=20 >=20 >So typically a module would define several features and the calling=20 >shell script/program would determine which ones it wishes to enable or=20 >disable. How does that differ from what you are attempting to=20 >accomplish? >