Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54160 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37315 invoked from network); 23 Jul 2011 18:18:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2011 18:18:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=stefan.marr.de@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stefan.marr.de@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.42 as permitted sender) X-PHP-List-Original-Sender: stefan.marr.de@gmail.com X-Host-Fingerprint: 209.85.216.42 mail-qw0-f42.google.com Received: from [209.85.216.42] ([209.85.216.42:39105] helo=mail-qw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/20-36045-2701B2E4 for ; Sat, 23 Jul 2011 14:18:26 -0400 Received: by qwi4 with SMTP id 4so1776394qwi.29 for ; Sat, 23 Jul 2011 11:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=tJKaJt3bw24Rb/VokVUno0KK68BIiFil42tjP7y/aIQ=; b=uqe5FdMig6o2qfm+R+pxIF2h/foY97JoDdsKsp/Sdge7iC/4Eyau6PVgqx2ccS+xXp 1m186Djh5QOfb7xJt7tiuqIbGHy1xzAm/0MqfTQRJiwO9hSWvq8rLU7C6a++5RtVjpIV heX6AMGaPc76K9gckNw/KAP49W6zOzWQqQUJ0= MIME-Version: 1.0 Received: by 10.229.226.7 with SMTP id iu7mr2133088qcb.85.1311445103506; Sat, 23 Jul 2011 11:18:23 -0700 (PDT) Reply-To: php@stefan-marr.de Sender: stefan.marr.de@gmail.com Received: by 10.229.89.129 with HTTP; Sat, 23 Jul 2011 11:18:23 -0700 (PDT) In-Reply-To: References: <4E29949C.9020209@gmail.com> <004701cc4890$f9d63f80$ed82be80$@com> <4E29B780.1030009@gmail.com> <007901cc489f$01d02580$05707080$@com> Date: Sat, 23 Jul 2011 20:18:23 +0200 X-Google-Sender-Auth: AQeFWIY8UxUm17qQ2HZMDOH3rlA Message-ID: To: Mike Stowe Cc: Jonathan Bond-Caron , Alex Howansky , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] 5.4a2 trait attribute name conflict resolution From: php@stefan-marr.de (Stefan Marr) Hi Mike: On Sat, Jul 23, 2011 at 6:49 PM, Mike Stowe wrote: > So am I understanding correctly that the initial properties must be identical both in type and value, otherwise it would throw an error. To me that would make the most sense as they could be overridden in a construct or other method. Yes, they have to be perfectly identical. Any difference indicates, in this strict model, a potential conflict and different semantics of that particular property i.e. the state. Since we do not provide any means to manage such conflicts, we bail out as early as possible and ask the programmer to fix his code by ensuring everything is compatible. Best regards Stefan