zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Next step: autoloadable features
Date: Tue, 29 May 2007 22:53:26 +0100	[thread overview]
Message-ID: <200705292153.l4TLrQXm009641@pws-pc.ntlworld.com> (raw)

I've been thinking a little about how to autoload features and it's
occurred to me it would be quite neat to have them marked with a special
character, so that + means feature enabled, - means feature disabled,
and some other character means feature marked for autoloading.  This
means, for example, zmodload -lF of an unloaded module is meaningful if
there are autoloads marked and it gives you a list of them.

I'm not sure how this fits with my vague and somewhat off the wall
feeling that the autoload should remain even when the module is loaded,
so that we can re-autoload the feature if the module is unloaded.
That would suggest that a feature that's enabled but still marked for
autoload should have yet another character, or possibly a combination of
+ and whatever.

Is this reasonable, at least the first bit?  What character should
indicate autoload?  It had better not be alphanumeric and it's easiest
if it doesn't need quoting.  How about "@"?

-- 
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


             reply	other threads:[~2007-05-29 21:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-29 21:53 Peter Stephenson [this message]
2007-05-30  8:26 ` Nikolai Weibull

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=200705292153.l4TLrQXm009641@pws-pc.ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@sunsite.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).