Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82339 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22711 invoked from network); 10 Feb 2015 07:07:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Feb 2015 07:07:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.52 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.192.52 mail-qg0-f52.google.com Received: from [209.85.192.52] ([209.85.192.52:33802] helo=mail-qg0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/B8-47508-F2EA9D45 for ; Tue, 10 Feb 2015 02:07:27 -0500 Received: by mail-qg0-f52.google.com with SMTP id h3so21576560qgf.11 for ; Mon, 09 Feb 2015 23:07:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=vHyZ4otzy5CZ3NvLQgsB3rnRiiElrINho/7pyTi7LN4=; b=zG9I4qlJC8j3tCuTLXBV4x36IRqc6ffxzpHaWEVYnflnhfSQQWJeH6IjRlCLH7VX2z n7SyNDcMlHZnLY8DtUsFoJcRPDy+0ykijsqUidc+6WLTu/7vfKvu2BfORZ1DIppVOxYe I7A/xTUPci97vJuqQ1tEEvhQJv2aTUmfTCufXuFFY73rrqvf9CiVpVDf1ItRIZ8f6kF/ wtGH2AhO3iQh5LxmOAg3FIiI7Fz2usF12lV5hW2UcUVcgN/kvOVwUU2X14IFAM8xhBuX lwGV9xqM/SM+uoNIs0Lt08AYqox5sPiYVvIsGIpb8zi7z/tQwjR6db/oG6xVedgDQg9m +sjA== X-Received: by 10.140.42.83 with SMTP id b77mr43522257qga.43.1423552044973; Mon, 09 Feb 2015 23:07:24 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.35.200 with HTTP; Mon, 9 Feb 2015 23:06:43 -0800 (PST) In-Reply-To: References: <54D7ED22.3080001@gmail.com> Date: Tue, 10 Feb 2015 16:06:43 +0900 X-Google-Sender-Auth: QVLIK0xApgcQ0CGTMozIZiFp_aM Message-ID: To: Joe Watkins Cc: Dmitry Stogov , PHP Internals , Stanislav Malyshev Content-Type: multipart/alternative; boundary=001a11c13054f5c63f050eb68991 Subject: Re: [PHP-DEV] Design by Contract From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c13054f5c63f050eb68991 Content-Type: text/plain; charset=UTF-8 Hi Joe, On Tue, Feb 10, 2015 at 3:59 PM, Joe Watkins wrote: > I'm not sure we can always enforce invariant contracts ... > > Evaluating invariant expressions on entry and exit is not enough, since a > property can be changed without the use of a method. > > Can or should, we do anything about that ? > > This should also be covered in the RFC, I think. > One reason I would like to use __invariant() is to allow overriding parents. I think we should have way for it, but I don't have good idea now. I'm still thinking. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c13054f5c63f050eb68991--