Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56968 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 661 invoked from network); 20 Dec 2011 22:43:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2011 22:43:47 -0000 Authentication-Results: pb1.pair.com header.from=davidkmuir@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=davidkmuir@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.42 as permitted sender) X-PHP-List-Original-Sender: davidkmuir@gmail.com X-Host-Fingerprint: 209.85.213.42 mail-yw0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:45042] helo=mail-yw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/60-29615-3AF01FE4 for ; Tue, 20 Dec 2011 17:43:47 -0500 Received: by yhmm16 with SMTP id m16so5287684yhm.29 for ; Tue, 20 Dec 2011 14:43:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=eqRgHxX5hIuvWXpDnJx0d6ZdSwDW3ql9Q+h8dTRDuG8=; b=Ixad+DaDbvIrl5eOVgIm8xcAZStsj0jC2uZqp0tmHQgYLavaFfoREvykT82mkpGpLE wF/o3ludFEwHYZFbRvSbLTr3bdkkxwBFKlaYUxoBP3Tn7vt4Pl8KZUeBG6SRjcwWnjJW JQiv3rpJDwoc9QDvzjSntyGlz1srnF3Ic3Tko= Received: by 10.236.165.98 with SMTP id d62mr6912727yhl.15.1324421024764; Tue, 20 Dec 2011 14:43:44 -0800 (PST) Received: from [192.168.1.181] (tmwpho1.lnk.telstra.net. [110.142.207.74]) by mx.google.com with ESMTPS id 39sm9061957ans.10.2011.12.20.14.43.41 (version=SSLv3 cipher=OTHER); Tue, 20 Dec 2011 14:43:43 -0800 (PST) Message-ID: <4EF10F98.1000302@gmail.com> Date: Wed, 21 Dec 2011 09:43:36 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0 MIME-Version: 1.0 To: jpauli CC: Qiang Guo , internals@lists.php.net References: <4EEF9C79.4090104@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Constant arrays From: davidkmuir@gmail.com (David Muir) On 12/21/2011 03:37 AM, jpauli wrote: > I guess constant array would mean that all the variables inside the array > dimensions should not change. > Just saying that, is a nonsense. > > If a constant could be an array, then that array could not contain > variables, if not it wouldn't be constant any more as a change to one > variable inside it would change its own meaning value. > > Julien.P > > A constant can only contain static values. There was no mention of variables. Isn't a "constant" array basically the same as an Enum? David