Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82444 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60188 invoked from network); 11 Feb 2015 07:51:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2015 07:51:44 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.169 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.169 mail-qc0-f169.google.com Received: from [209.85.216.169] ([209.85.216.169:47714] helo=mail-qc0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/5C-33902-F0A0BD45 for ; Wed, 11 Feb 2015 02:51:44 -0500 Received: by mail-qc0-f169.google.com with SMTP id m20so1387591qcx.0 for ; Tue, 10 Feb 2015 23:51:40 -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=ogJ54rOjZ02phNKdRY1ZE6a5qO85AnbVCcp4E8LABoQ=; b=QI51FPQnwMBWgGiUVP9hV9qEPg6c7wFZqF8Xeuc+XoB9XC9Goiy7gJrOjvLvbNMhLa VWX1GZlEQUWFoJSiBrYVMnby3lPom6r4iPUVjuB+RJdE2JHu8qISIxyzJWsLmi/K5Na8 DEskg+UaQDhlLyoeKnWUh6mlaTpwLlDhmNiKXhL8eGVsfm4f8LUNCf3lB2oOLrWwDD6K f5liebGa9ia/9ce91EXBrQdTWnSVQY2rK8ifVGoARpKzoSVfor9txl5ozY9KLjqE1YSj wbfq5DGPXXlqSw7Do2sOkv3RobxrJ2JutJ7YeBUmGrgUtGbcDHfujw/Kpuc/R5g/XMoj qkGg== X-Received: by 10.140.97.203 with SMTP id m69mr60209356qge.39.1423641100173; Tue, 10 Feb 2015 23:51:40 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.250.195 with HTTP; Tue, 10 Feb 2015 23:50:59 -0800 (PST) In-Reply-To: References: <54D7ED22.3080001@gmail.com> Date: Wed, 11 Feb 2015 16:50:59 +0900 X-Google-Sender-Auth: efvRaTAxb5z1Ipyz7yotFoKgJAY Message-ID: To: Dmitry Stogov Cc: Joe Watkins , Patrick Schaaf , internals Content-Type: multipart/alternative; boundary=001a113a2aa2104768050ecb46f2 Subject: Re: [PHP-DEV] Design by Contract From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a113a2aa2104768050ecb46f2 Content-Type: text/plain; charset=UTF-8 Hi Dmitry, On Wed, Feb 11, 2015 at 4:26 PM, Dmitry Stogov wrote: > I think we should just repeat the related D semantic. > It must be defined in contracts inheritance rules. > > What if we have contracts for prototype method in parent class and > interface? > Should we still validate contracts of parent and interface if we add our > owns? > etc. Both D and Eiffel evaluates all contracts defined in parents/interfaces. Both D and Eiffel has method like invariant definition. They don't inherit explicitly, but inherit implicitly always. That's why I sent strange mail. I read code and misunderstood by mistake. I don't code with D much, but I really like the feature ;) Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a113a2aa2104768050ecb46f2--