Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56976 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46708 invoked from network); 21 Dec 2011 09:02:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Dec 2011 09:02:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.42 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 74.125.83.42 mail-ee0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:60758] helo=mail-ee0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 42/24-13480-1B0A1FE4 for ; Wed, 21 Dec 2011 04:02:42 -0500 Received: by eeke51 with SMTP id e51so6560797eek.29 for ; Wed, 21 Dec 2011 01:02:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=lTERBaTdu59KMRuTxCaJU0GtXmtnFl28Uh90E5MgKBc=; b=JK21d4WrYOVnimZAxDxORqlcQmldVg5IsWbZyhSsJ06los8ryXvZFPBHILFibYPugE dhnDK2xyxLiGncIJ+STdpiR81I7mF1QCOlcaoMdSlyaTMr5ECE6QQc8Sz7YcG7oAIda/ b95W54/tIKm9j9F3koTMt6+iieiK4UJWQWDzM= Received: by 10.14.47.141 with SMTP id t13mr2284375eeb.89.1324458158302; Wed, 21 Dec 2011 01:02:38 -0800 (PST) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.213.10.20 with HTTP; Wed, 21 Dec 2011 01:01:57 -0800 (PST) In-Reply-To: <4EF10F98.1000302@gmail.com> References: <4EEF9C79.4090104@gmail.com> <4EF10F98.1000302@gmail.com> Date: Wed, 21 Dec 2011 10:01:57 +0100 X-Google-Sender-Auth: 7eZUKCYf6zDVmkSHXOoYbZMk_GQ Message-ID: To: David Muir Cc: Qiang Guo , internals@lists.php.net Content-Type: multipart/alternative; boundary=90e6ba6150e20ba85e04b4967232 Subject: Re: [PHP-DEV] Constant arrays From: jpauli@php.net (jpauli) --90e6ba6150e20ba85e04b4967232 Content-Type: text/plain; charset=ISO-8859-1 Okay, but those effectively don't exist in PHP ;) Julien On Tue, Dec 20, 2011 at 11:43 PM, David Muir wrote: > 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 > --90e6ba6150e20ba85e04b4967232--