Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101542 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99861 invoked from network); 5 Jan 2018 10:35:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2018 10:35:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.192.193 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.192.193 mail-pf0-f193.google.com Received: from [209.85.192.193] ([209.85.192.193:37397] helo=mail-pf0-f193.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/A7-45945-9F45F4A5 for ; Fri, 05 Jan 2018 05:35:39 -0500 Received: by mail-pf0-f193.google.com with SMTP id n6so2040300pfa.4 for ; Fri, 05 Jan 2018 02:35:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=VRp3R7GJJT/Rcgk5e2Ojick6twZUVSOFTG61eJy/QEQ=; b=xW44gDhivJScWuFNew5kyceqbqlobwC+47f6D+pa65lyEFKxhiLVuNyr0gpwFDXznk l31DY7adQTNOZakDAAY1WNjK7G5MhV/YpniYzRnsjx6fXT/oYtaZnwrFTgUgrnUOesNJ igPlNR0M6x6oznUqz5DDKJlY+MA9/SG4axt8RYA0fj+Opsck19RqMZ2gOfpvTcXCNTkT ftQSNOjfHRSXwKnWrXt54z3d0hfbdLBTgto9YtwomG0imIbkmLfcSOmMfTMTDNvLfFOg 0UB5Eg9h5LzEw6FqamaQm6OvElTiX90rMAtx+rrWjql3jT4nBqLhbrbxAJJ88naGPWw7 8/rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=VRp3R7GJJT/Rcgk5e2Ojick6twZUVSOFTG61eJy/QEQ=; b=dWJhy5Km8ocdJ9RYvDuXFoU+sB/Qm2R2bJhYTOY6tVyGeGf9wBj7BdtBdwc1cILp4O CdtvQ95OjPAVT7xbaxYgQywGBZmpQvFnipci9qlaTd3pr3I+r7GQX5QdRboT7DdEF1y+ t65lqIofCu/Es1YCYci4fJnp1qE3TdP6AanOVCW+MXLyvRC5YLq/NbEgYedfNNiGsVjG 3MTYFUJhOs+gsApM0BwRWOS5L/LBvdnOONuNioJDZvXZ2UZXfksge++qgrOatpXhrbxR ZOa8XH7GrE8WsK+9tPSTH3oTXUcyutPxq45CZNePQnGxia6QpF7Ttlbf/ZOgtjEMDVOH Cjzw== X-Gm-Message-State: AKGB3mIITU9GFME/OWCDblcM59Glyr/yY9wwquFwJ9YgK50Bzr9Xli++ YNC7rez+b1btWDkXMcjgCgkPBfVe7QHw96DRevpc5w== X-Google-Smtp-Source: ACJfBot0oAqHHUelHe1x2MAVTHBWksmIAolESoOUN9wqhNMTtjKI8g9J2QJo/u721fB2J0DVIkiq8OIDeP82+peZzKg= X-Received: by 10.101.68.75 with SMTP id e11mr2182295pgq.68.1515148535086; Fri, 05 Jan 2018 02:35:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.100.170.204 with HTTP; Fri, 5 Jan 2018 02:35:34 -0800 (PST) X-Originating-IP: [81.143.203.71] In-Reply-To: References: <9a3a8760-f65a-a5c0-b318-1830a9a986c3@gmail.com> <9352F6DF-9940-49A2-9B1D-FA9258E9738E@lerdorf.com> Date: Fri, 5 Jan 2018 10:35:34 +0000 Message-ID: To: Michael Morris Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Strong Typing Syntax From: danack@basereality.com (Dan Ackroyd) On 5 January 2018 at 02:01, Michael Morris wrote: > > what if the underlying zval wasn=E2=80=99t a zval but a separate > class specific to the data type but implementing the same interface as > zval? I believe the only sensible answer to that is 'mu', as that question is based on misunderstanding. The internals of the PHP engine is C, and zvals are structs not classes, and so there is no interface. In userland classes are also zvals. http://www.phpinternalsbook.com/php7/internal_types/zvals/basic_str= ucture.html Also, I think people who try to guess at how to make changes to the engine, are doing a small disservice to people who have already tried to implement this. The current contributors are a bunch of clever people, and if there was an obvious way to implement it, they would have implemented it already. It's not a case that there is going to be an easy solution that has been overlooked, that someone cleverer is going to be able to guess at. cheers Dan Ack