zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: Zsh <zsh-workers@sunsite.dk>
Subject: Re: Problem with an exported array
Date: Tue, 23 Sep 2003 10:44:58 +0100	[thread overview]
Message-ID: <17957.1064310298@csr.com> (raw)
In-Reply-To: "Wayne Davison"'s message of "Mon, 22 Sep 2003 12:28:22 PDT." <20030922192822.GD23145@binome.blorf.net>

Wayne Davison wrote:
> Here's my trick: use "ct" (it's already multi-use).  A tied variable is
> already excluded from being a special type of integer, so my change just
> excludes the "ct" from being taken as a field width.  See if you can see
> any problems with this.

This does break the existing function,

% typeset -T FOO foo
% foo=(bar rod)
% typeset -R 15 FOO
% print $FOO
        bar:rod

and (unless you've taken special steps to fix it) you run the risk of
the ct element being used for both when you request `typeset -R 15 FOO'.

However, you only need eight bits (until we have wide characters, which
is another future nightmare) and ct is at least 32, so it's
tantalising...

I would be tempted to add -S as a single flag now and wait until we have
a better (virtual) interface to the parameters, then add a more
general flag.  As Oliver says, a different option letter would be more
appropriate for the general case anyway.

Eventually, I'd like struct param to become opaque to code outside
params.c and use something like a single (vtable-style) pointer for
type-specific bits.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************


  reply	other threads:[~2003-09-23 10:08 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-22  8:30 DervishD
2003-09-22  9:08 ` Oliver Kiddle
2003-09-22  9:31   ` DervishD
2003-09-22  9:48   ` Peter Stephenson
2003-09-22 11:33     ` DervishD
2003-09-22 13:44       ` Peter Stephenson
2003-09-22 14:04         ` DervishD
2003-09-22 14:22         ` Bart Schaefer
2003-09-22 14:45           ` Danek Duvall
2003-09-22 16:30             ` DervishD
2003-09-22 17:58             ` Bart Schaefer
2003-09-22 18:06               ` Danek Duvall
2003-09-22 15:52           ` Peter Stephenson
2003-09-22 17:44             ` DervishD
2003-09-22 18:03               ` Bart Schaefer
2003-09-23  7:52                 ` DervishD
2003-09-22 19:28             ` Wayne Davison
2003-09-23  9:44               ` Peter Stephenson [this message]
2003-09-23  7:57             ` Oliver Kiddle
2003-09-23 16:02               ` Peter Stephenson
2003-09-24 13:09                 ` DervishD
2003-09-22 16:33           ` DervishD

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=17957.1064310298@csr.com \
    --to=pws@csr.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).