zsh-users
 help / color / mirror / code / Atom feed
From: "Johan Sundström" <johsu650@student.liu.se>
To: "Zsh-list" <zsh-users@math.gatech.edu>
Subject: Static variables?
Date: Sun, 14 Jun 1998 06:55:17 +0200	[thread overview]
Message-ID: <002801bd9750$a021f600$cde8ec82@a205.ryd.student.liu.se> (raw)

Is it possible to use c-style "static" variables in my functions, or do I
have to stick to global ones? My precmd function doesn't get too happy when
its variables are tampered with, and it's quite slow enough as it is without
sanitytests. Having some variables accessable only from a certain function
(precmd in this case) would help a lot and unclutter the huge list of global
variables a bit, while at it.

If it's possible, how is it done?

/Johan Sundström


             reply	other threads:[~1998-06-14  5:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-14  4:55 Johan Sundström [this message]
1998-06-14  6:38 ` 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='002801bd9750$a021f600$cde8ec82@a205.ryd.student.liu.se' \
    --to=johsu650@student.liu.se \
    --cc=zsh-users@math.gatech.edu \
    /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).