Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82366 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82098 invoked from network); 10 Feb 2015 11:32:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Feb 2015 11:32:14 -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.216.45 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.45 mail-qa0-f45.google.com Received: from [209.85.216.45] ([209.85.216.45:45141] helo=mail-qa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B7/54-47508-C3CE9D45 for ; Tue, 10 Feb 2015 06:32:13 -0500 Received: by mail-qa0-f45.google.com with SMTP id j7so2014442qaq.4 for ; Tue, 10 Feb 2015 03:32:10 -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=jaxahEmsYS72B+ycUr4tOz1cbJwWM1v1OqXPb57vBGo=; b=atJHq8bA634EcnwkEQXS2v8lW1Z5DQT4RufLJUNBM5SWy3gHb5IFp57z3Mp+iYAKKm mNULtsAjLeIzdE/X/+9TxJ+BCNWOeFbH6Hi7KXuSwMFw+QY3bpd22N/u+4Hy03jlNjOx GP6rWy5eVblg9WQfR5cklCE7D3HE/PQ698vVfMIuoBcbxbWHClXE34SwYUvMKyJaJeO2 TlhBhK1bL2x5qc5Zs+c9WNcHfKVteAk7jUBXekEr3WYv1nQzFB/XnZELTI1VtsgVtHfW +ZSVNCmWek+7KSdbAGIpGIa9R4nP5ohq7UHsx6POdkS8fqP7q+/pxMkQ8aqIjor7d+9C HTEg== X-Received: by 10.224.60.193 with SMTP id q1mr50643097qah.86.1423567930324; Tue, 10 Feb 2015 03:32:10 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.250.195 with HTTP; Tue, 10 Feb 2015 03:31:30 -0800 (PST) In-Reply-To: References: <54D7ED22.3080001@gmail.com> Date: Tue, 10 Feb 2015 20:31:30 +0900 X-Google-Sender-Auth: 1Yl_z7wc1ehMVOtVMvYQFkuGkS8 Message-ID: To: Joe Watkins Cc: Dmitry Stogov , Patrick Schaaf , internals Content-Type: multipart/alternative; boundary=001a1133dee6ccffca050eba3cf8 Subject: Re: [PHP-DEV] Design by Contract From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a1133dee6ccffca050eba3cf8 Content-Type: text/plain; charset=UTF-8 Hi Joe, On Tue, Feb 10, 2015 at 4:40 PM, Joe Watkins wrote: > It doesn't seem to make sense to do that, a derived class should be able > to define additional contracts, but not change the contracts of it's parent. I forgot that invariants in D and Eiffel implicitly inherits parent's invariants. So classes that causes problems have design bug. Please go ahead editing the file. I wouldn't have time until next morning. There will be hours. I'll wait as long as it takes. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a1133dee6ccffca050eba3cf8--