Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68513 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25330 invoked from network); 14 Aug 2013 11:13:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Aug 2013 11:13:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=bof@bof.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bof@bof.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain bof.de designates 80.242.145.70 as permitted sender) X-PHP-List-Original-Sender: bof@bof.de X-Host-Fingerprint: 80.242.145.70 mars.intermailgate.com Received: from [80.242.145.70] ([80.242.145.70:42248] helo=mars.intermailgate.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/B3-06453-2566B025 for ; Wed, 14 Aug 2013 07:13:22 -0400 Received: (qmail 3994 invoked by uid 1009); 14 Aug 2013 13:13:18 +0200 Received: from 209.85.212.52 by mars (envelope-from , uid 89) with qmail-scanner-1.25-st-qms (clamdscan: 0.96.2/17676. spamassassin: 3.3.1. perlscan: 1.25-st-qms. Clear:RC:1(209.85.212.52):. Processed in 0.074253 secs); 14 Aug 2013 11:13:18 -0000 X-Antivirus-MYDOMAIN-Mail-From: bof@bof.de via mars X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:1(209.85.212.52):. Processed in 0.074253 secs Process 3983) Received: from mail-vb0-f52.google.com (gmail@bof.de@209.85.212.52) by mars.intermailgate.com with RC4-SHA encrypted SMTP; 14 Aug 2013 13:13:18 +0200 Received: by mail-vb0-f52.google.com with SMTP id f12so7390425vbg.25 for ; Wed, 14 Aug 2013 04:13:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=hpZtQyzAwPw5nzCk3R+bAelyoAaEsC/gsFvMjR7vzlQ=; b=kCLsBtz8k06S1mvPqZuZfY0xGavS0inGcuj+3C8Oa5sLbExCZqMCoeDfjx1WQCsc/f 1ToY/QvLwR/OswXQl3M3ZMFYyBDDiRxZm9+GrDPeZWibq+6hWLP9CYTLVllAPlfuefco nt5xNGOVhY8qt+HD7W/qKTQPDkMUV5CPyTk5gQ/WUdHco5/j7EjckZeevFQpK5OUyJX5 Rhbm8lPV0AQJZnxmgnQKKpYOze1fhr8WE4vnEFcCLSuPGc8MktZxBHtQhZOvW/ygTeeL De9PvAS44coGMlyarKCjPBE0rckboe96XE/GCAW71p0MOCfgB4XuXvzgw0fRLgrr9MRR juTg== MIME-Version: 1.0 X-Received: by 10.220.82.9 with SMTP id z9mr3186639vck.0.1376478797061; Wed, 14 Aug 2013 04:13:17 -0700 (PDT) Received: by 10.52.240.49 with HTTP; Wed, 14 Aug 2013 04:13:16 -0700 (PDT) Received: by 10.52.240.49 with HTTP; Wed, 14 Aug 2013 04:13:16 -0700 (PDT) In-Reply-To: References: <4ED7146272E04A47B986ED49E771E347BB514EEE88@Ikarus.ameusgmbh.intern> Date: Wed, 14 Aug 2013 13:13:16 +0200 Message-ID: To: Derick Rethans Cc: internals Content-Type: multipart/alternative; boundary=089e016341aabd9a3904e3e671d0 Subject: RE: [PHP-DEV] [RFC] Constant Scalar Expressions From: bof@bof.de (Patrick Schaaf) --089e016341aabd9a3904e3e671d0 Content-Type: text/plain; charset=ISO-8859-1 Am 14.08.2013 13:03 schrieb "Derick Rethans" : > > On Wed, 14 Aug 2013, Patrick Schaaf wrote: > > > Would this allow using constants, too? Class constants? > > > > const FOO = 1; > > const BAR = self::FOO + 1; > > Those are not constants, but expressions which can't be run during > compile time. Understood now. Constants are not constants. Is there a general consensus that just-in-time at-runtime initialization in these places (as well as for property initializers) is not possible or desired - or is that just something that would need a lot of thought and work? best regards Patrick --089e016341aabd9a3904e3e671d0--