Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101129 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75512 invoked from network); 12 Nov 2017 10:10:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Nov 2017 10:10:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=lists@rhsoft.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=lists@rhsoft.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain rhsoft.net designates 91.118.73.15 as permitted sender) X-PHP-List-Original-Sender: lists@rhsoft.net X-Host-Fingerprint: 91.118.73.15 mail.thelounge.net Received: from [91.118.73.15] ([91.118.73.15:62579] helo=mail.thelounge.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/3A-15386-21E180A5 for ; Sun, 12 Nov 2017 05:10:27 -0500 Received: from srv-rhsoft.rhsoft.net (Authenticated sender: h.reindl@thelounge.net) by mail.thelounge.net (THELOUNGE MTA) with ESMTPSA id 3yZTzf43GCzXKg for ; Sun, 12 Nov 2017 11:10:22 +0100 (CET) To: internals@lists.php.net References: <93a05192-ed34-2164-50f9-2799899b32d1@fleshgrinder.com> <4ee3d414-92e1-75c7-402f-16a37ed3016b@fleshgrinder.com> <3f093ce2-e00e-f210-6e35-de31eb2f4b07@gmail.com> <0061a0c9-328c-75cb-cf6f-8e444e9ea3c0@fleshgrinder.com> <2f555141-96e0-3bab-c191-1216747644a5@fleshgrinder.com> <549c4634-ac38-41d3-ab43-f816a9f2b1e5@fleshgrinder.com> <31.39.15386.196180A5@pb1.pair.com> <8a8515ec-31a4-5234-d83e-beb9f0144c07@librelamp.com> Message-ID: Date: Sun, 12 Nov 2017 11:10:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <8a8515ec-31a4-5234-d83e-beb9f0144c07@librelamp.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-CH Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Constants and Access Modifiers From: lists@rhsoft.net ("lists@rhsoft.net") Am 12.11.2017 um 10:50 schrieb Alice Wonder: > On 11/12/2017 01:38 AM, Tony Marston wrote: >> Just because some languages use a corrupt definition of "constant" is no >> reason for PHP to do the same. A constant has a value which, once >> defined, cannot be changed. It is not logical to define a constant name >> in one place and its value in another. > > Plus plus on this. A constant does not change. If it changes it is a > variable. I do not know anything about Dart but if they are changing the > meaning of well-defined terms like constant, I worry that there will be > programs with security holes simply because some developers will not > understand what they mean by the terms they define. what about both of you read the initial post of that thread as well as the manual at http://php.net/manual/en/language.oop5.interfaces.php _______________________- that's the topic and not arbitary change constants! A constant defined in an interface cannot be overwritten in the class that implements the interface, however, further subclasses can overwrite the content of the constant at will - https://3v4l.org/DFB37 - https://3v4l.org/9LMci