Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Added builtins per runtime
- X-seq: zsh-workers 27941
- From: Christoph Kappel <unexist@xxxxxxxxxxxxx>
- To: <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Added builtins per runtime
- Date: Sat, 01 May 2010 23:02:28 +0200
- Cc: <zsh-workers@xxxxxxx>
- In-reply-to: <z2o691a5d911005011349j14613f73g432036f224d86377@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <12854b73c24.-5662614641985446414.-6364714751911043221@xxxxxxxxxxxxx> <o2y691a5d911005011258pfb4c688ar75e1953c01a5045@xxxxxxxxxxxxxx> <1285584468e.-5976807992945925025.-2686280647114173652@xxxxxxxxxxxxx> <z2o691a5d911005011349j14613f73g432036f224d86377@xxxxxxxxxxxxxx>
That was exactly my question. Can a module change it's features per runtime?
Generally the use of the word feature in the doc is really confusing, reading the
coding makes it's even worse when a feature struct contains lists of builtins,
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 <schaefer@xxxxxxxxxxxxxxxx> wrote ----
>On Sat, May 1, 2010 at 1:17 PM, Christoph Kappel <unexist@xxxxxxxxxxxxx> wrote:
>>
>> I want to add new ones per runtime.I am currently trying to maintain a second list
>> and call addbuiltin() when I need to add one.
>
>I guess I'm not understanding the question, then. Can you give an
>example of what it means to you to "add new ones per runtime"? What
>would it mean for example.c to "change" the builtins that it defines?
>
>Modules define features, which can be several different kinds of
>things including builtins. None of a module's features is available
>until the module is loaded. Once a module is loaded, you can't alter
>the set of features it provides, though the zmodload command can
>enable and disable specific features to make them visible or invisible
>to the shell.
>
>So typically a module would define several features and the calling
>shell script/program would determine which ones it wishes to enable or
>disable. How does that differ from what you are attempting to
>accomplish?
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author