From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8095 invoked by alias); 5 Feb 2016 17:24:43 -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: 37890 Received: (qmail 20477 invoked from network); 5 Feb 2016 17:24:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=X4bD105GL+lP6jOgaoLSNohgOnMYAeB49TS2BRi3+lc=; b=u9AdGj+MCcrwFas1w3QlTD0U9mOxbeHb169UTXB3yZuxQFFtVH+HYj7qlolJC8C1nv 6Fg+Jdl1LuKLtfD5y+gyMrrj3kPMP/ZP4aHrGlUO0P/GatUfrGEUmyiuhTgWElKcE2E4 HsiBJ6MWBc0jWdNGD4VrNTeAzwkEeLWmrFHN1bLLm0wYjWevThg2Vn0M+kolp3vL6BAI UL8O2jR4HbRLg/ZL2bdtUVeMxmVO8JXb56ZkQ4R2XktpHd/t2s4D423pROV/DiALgH9+ keiKOjgq7Zw2OGsN/q9XFI58Rne/WTmfw1+bZ9gEGjNQaQqCFXRnpSzNSq0Hy/Zqw+t4 fQYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=X4bD105GL+lP6jOgaoLSNohgOnMYAeB49TS2BRi3+lc=; b=GRITMH9R6jDkkgAFG837Avjj1PZ7ZMhL3g0e3kcVuT/vE70ttgbuyF4GQU26cw9GGH vipGblyfRg33G4WI0sx3TE44VWvP7LrUui0k8FxyEKrCtWHKyyBPxcAuHLQ0DVg2T8Rc cQTR0QN9HUizcyJBy1kfsS5heKV4vTNJC4L/3+qIJaaFzJHIitx/OPovZ4Y7B3vGOk1I Hf0nFybbDEL/Mama0zqQMYLQQw/UxUTkjPNQ3o2hSkxYl4aFmW4xFmb1crYH0FeFiorR ee95dlQ1tzXrHsUT9fDjErw03096KRTnUL5w/7tKd8JU1NEfvktvgobTQFYf+wAjVRdi kx0Q== X-Gm-Message-State: AG10YOQdi5dO1hBFjpaqp6Zqvj6K2emMCjS/zJVJtyXPllMbSHg6w3k1OCdzCaG4KyjdvygpoyKtgJqHPBGbFw== X-Received: by 10.112.137.129 with SMTP id qi1mr6458739lbb.31.1454693079391; Fri, 05 Feb 2016 09:24:39 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <160205083708.ZM29641@torch.brasslantern.com> References: <160205083708.ZM29641@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Fri, 5 Feb 2016 18:24:20 +0100 Message-ID: Subject: Re: Compiled files ignore aliases To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset=UTF-8 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