zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: hierarchical module names
Date: Tue, 14 Dec 1999 23:45:32 +0000	[thread overview]
Message-ID: <E11y1cO-0003fh-00.1999-12-14-23-44-33@mail1.svr.pol.co.uk> (raw)
In-Reply-To: "zefram@fysh.org"'s message of "Tue, 14 Dec 1999 17:07:46 GMT." <199912141707.RAA31154@mango.dublin.iona.ie>

zefram@fysh.org wrote:
> Each existing module `foo' is renamed to `zsh/foo', except that the `zsh'
> module is renamed to `zsh/main'.  We should decide at this point whether
> all the modules distributed with zsh will always go into the `zsh/'
> namespace, or whether we can also bundle modules in other namespaces
> (should `zsh/zprof' be `sven/zprof', for example).

I don't like this bit.  It means zmodload behaves differently from the way
it's done for several years now.  I don't see why the main modules
shouldn't keep their old names.  Indeed, if you can arrange (and I don't
see why you can't, given the suffix on the module itself) that both
`modname' and `modname/mymod' can exist as modules (i.e. you can have
modname.so and modname/mymod.so), there's no reason why we shouldn't just
tell people supplying modules separately to use an arbitrary prefix and
keep bundled ones (even new bundled ones) without.  I don't see this part
of the change being very popular otherwise.

Or, if you prefer, you can make a name without a slash equivalent to the
same with zsh/ stuck in front.  That might be the simplest.

> * There is no way to load a module from a specified filename.  There
>   should probably be a distinct option for this, if the capability is
>   to exist at all.

I don't think this is a worry; you can write a function with some $fpath
trickery if you're desparate.

-- 
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>


  reply	other threads:[~1999-12-14 23:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-14 17:07 zefram
1999-12-14 23:45 ` Peter Stephenson [this message]
1999-12-15 10:52   ` Zefram
1999-12-15 20:31     ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E11y1cO-0003fh-00.1999-12-14-23-44-33@mail1.svr.pol.co.uk \
    --to=pws@pwstephenson.fsnet.co.uk \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).