From: Sebastian Gniazdowski <psprint2@fastmail.com>
To: zsh-workers@zsh.org
Subject: Re: [PATCH] Documentation on (A) Create array parameter
Date: Wed, 22 Feb 2017 12:47:48 -0800 [thread overview]
Message-ID: <1487796468.3076517.889705904.03F4AB64@webmail.messagingengine.com> (raw)
In-Reply-To: <170222115802.ZM18878@torch.brasslantern.com>
On Wed, Feb 22, 2017, at 11:58 AM, Bart Schaefer wrote:
> On Feb 22, 3:40am, Sebastian Gniazdowski wrote:
> }
> } (A) completion and documentation suggest straight creation:
>
> There's no such thing as "straight creation" of a parameter; the whole
> shell model depends on dynamic scoping. Assignments *always* apply to
> any parameter that is already in scope, the only way to change that is
> by declaring the parameter with typeset/local/etc.
It's that if I have a new scope, and write "local param", I would say I
straight-create it. It will have the "oldpm" field set internally but
it's all like straight creation. If the scope is new. So I could expect
(A) will behave the same way. Use my current scope and create.
> scoping is something for a much larger context. Would it have led you
> astray if instead the paragraph said "Assign as an array parameter ..." ?
No that's fine.
--
Sebastian Gniazdowski
psprint2@fastmail.com
prev parent reply other threads:[~2017-02-22 20:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-22 11:40 Sebastian Gniazdowski
2017-02-22 19:58 ` Bart Schaefer
2017-02-22 20:47 ` Sebastian Gniazdowski [this message]
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=1487796468.3076517.889705904.03F4AB64@webmail.messagingengine.com \
--to=psprint2@fastmail.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).