From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10720 invoked by alias); 26 Sep 2015 22:29:28 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36649 Received: (qmail 24285 invoked from network); 26 Sep 2015 22:29:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:to:subject:mime-version :content-type; bh=+qdAkykOXR8b7qAsgjwBe6Arldt/g7swujSEFQDSN9s=; b=CGn1dMM+jexQU+Bu09BhnVTpGUaGMnndDOSlH5qDEKg64NPTuFtMFLb+6CeH/lZ4bi XP/7B/Grv+icfYovGLbPESRfd1yiHaDf7U2t3//hhEMLonaRHD2KZB++58Lb+0ZSzQnN Yyc/wK482tfvkGqA384GqX2daX8lyZ5BPuuadM5Cg/sGAoH07F9Mvo9IhyKb5UuNUet+ j/65r01cfBUOAQDQKc6EyA/EfWhAYDQBEoAgOjiVH2xjjFXRrsfHUSf3JhJ4rxw0ABQj T2vP6vtF/Ezz6v8VzR7FeYRBohnFBWnck6lS8hUQWgA3VxpzCczKCDKKVAcCgN09AWry QaBg== X-Gm-Message-State: ALoCoQlQ+Al5Sf1Rf/rKptpU5aCDtITrQzfugU7oXGoD0Fj7yRtoSklESzTuhGOykfg33B52fH9I X-Received: by 10.202.97.196 with SMTP id v187mr6508157oib.91.1443306563456; Sat, 26 Sep 2015 15:29:23 -0700 (PDT) From: Bart Schaefer Message-Id: <150926152921.ZM17972@torch.brasslantern.com> Date: Sat, 26 Sep 2015 15:29:21 -0700 X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Properties of special hashes in zsh/parameter module MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Some of the special parameters in zsh/parameter are referenced as read-only hashes. The normal properties of assocative arrays imply that if you refer to all the values in one of these hashes, e.g. ${history[*]}, that they may be returned in any order. In practice these special hashes don't use a hash table implementation and the order of values is guaranteed to be fixed, and in the case of $history are guaranteed to be in the same order as $(history -rn 1). Should we document this and make it a reliable condition for scripting? Or do we prefer to keep open the option of implementing atop an unordered hash at some point in the future?