zsh-users
 help / color / mirror / code / Atom feed
* Static variables?
@ 1998-06-14  4:55 Johan Sundström
  1998-06-14  6:38 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Johan Sundström @ 1998-06-14  4:55 UTC (permalink / raw)
  To: Zsh-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-06-14  6:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-06-14  4:55 Static variables? Johan Sundström
1998-06-14  6:38 ` Bart Schaefer

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).