Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Static variables?
- X-seq: zsh-users 1614
- From: "Johan Sundström" <johsu650@xxxxxxxxxxxxxx>
- To: "Zsh-list" <zsh-users@xxxxxxxxxxxxxxx>
- Subject: Static variables?
- Date: Sun, 14 Jun 1998 06:55:17 +0200
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author