zsh-workers
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Compiled files ignore aliases
Date: Fri, 5 Feb 2016 18:24:20 +0100	[thread overview]
Message-ID: <CAKc7PVBeEpTN9jTg9HQE_ycuOP+jFGEFQZ4hoz8oT8LRDogcYg@mail.gmail.com> (raw)
In-Reply-To: <160205083708.ZM29641@torch.brasslantern.com>

Yes I thought about it and it's reasonable, though unsymmetrical. Zwc
changes things, there isn't full symmetry when sourcing file already
parsed or not, but see *. The "reasonable" is that parsing probably
does lookup each word in a hash table to see if there is an alias for
it. Compiling means skipping that time consuming process. So compiling
is maybe all or maybe mostly about ability of ignoring aliases. In my
project I'm being close to able to fully switch to function shadowing,
the only juggling is about compdef which isn't builtin, but that's too
handable by function shadowing (will have to wrap function by
function). Plugin architecture may be simply extended by constraint
"expect no aliases" and that's all, it's a luck that (*) plugin isn't
"a file to source", it's a software package which may have
constraints.

Best regards,
Sebastian Gniazdowski


  reply	other threads:[~2016-02-05 17:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-05 15:33 Sebastian Gniazdowski
2016-02-05 16:37 ` Bart Schaefer
2016-02-05 17:24   ` Sebastian Gniazdowski [this message]
2016-02-05 18:43     ` Bart Schaefer

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=CAKc7PVBeEpTN9jTg9HQE_ycuOP+jFGEFQZ4hoz8oT8LRDogcYg@mail.gmail.com \
    --to=sgniazdowski@gmail.com \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /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).