zsh-workers
 help / color / mirror / code / Atom feed
* MAX_ARRLEN
@ 2012-04-23 15:27 Peter Stephenson
  2012-04-23 16:10 ` MAX_ARRLEN Mikael Magnusson
  2012-04-23 16:38 ` MAX_ARRLEN Bart Schaefer
  0 siblings, 2 replies; 11+ messages in thread
From: Peter Stephenson @ 2012-04-23 15:27 UTC (permalink / raw)
  To: Zsh Hackers' List

I've just hit MAX_ARRLEN.  The array in question wasn't much larger than
the limit and when I commented out the checks everything just worked fine.
So it looks like an arbitrary limit isn't much use --- no great
surprise, I don't think anyone here is a big fan of them.

What's the right thing to do?  There are various grades ranging from
making it compilable out, through making it compile-time configurable
with an option to compile out, through making it an option to have the
check turned on, to having a variable that we check using getiparam()
each time, to having a special variable so that we don't need to get it
each time.  I think the last option with a clearly named variable such
as ZSH_MAX_ARRAY_LENGTH that can be set to 0 to turn it off is probably
the best.

-- 
Peter Stephenson <pws@csr.com>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog


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

end of thread, other threads:[~2012-04-25  9:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-23 15:27 MAX_ARRLEN Peter Stephenson
2012-04-23 16:10 ` MAX_ARRLEN Mikael Magnusson
2012-04-23 16:21   ` MAX_ARRLEN Bart Schaefer
2012-04-23 16:27     ` MAX_ARRLEN Peter Stephenson
2012-04-23 16:36       ` MAX_ARRLEN Mikael Magnusson
2012-04-23 16:40         ` MAX_ARRLEN Peter Stephenson
2012-04-23 16:45           ` MAX_ARRLEN Mikael Magnusson
2012-04-23 16:38 ` MAX_ARRLEN Bart Schaefer
2012-04-24 13:37   ` MAX_ARRLEN Peter Stephenson
2012-04-24 19:45     ` MAX_ARRLEN Bart Schaefer
2012-04-25  9:01       ` MAX_ARRLEN Peter Stephenson

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