Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126333 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 6685B1A00BC for ; Fri, 7 Feb 2025 15:06:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1738940597; bh=e5RzHWzv9JIyRhfzO9SL8MJqCAYCoyE++ehmua1Q4BA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SGt7cFXqh/Rj9nT5wD34N2JQUZSSAwYd7GTCgQbTz5pKpN+pnSNGSSfQ3uwVWVhiI 4yfoz2+R/Zgz7ulQDEA/INE+g8R7uTevvXka4B09yF//6cyCVnBLVN17FAt/xsmdJ5 7nZDcooxaXvTHiNGoIWXFze+H8L4sTeCywa5FboZO9ktdetzHCvFiyN8e7TsKdDaJz FaaCqy26yLKdqjs3VBghXwILxlvnXUcYH+0J3ge1f4/KLmiwieEYfgALgu30tQkV9U Zr5PyvK6RhqB2CG3itSRjOV3EIu0ZXTcbVB/UMQHo/xrtxlqFu5NDTLxZrTEjxMvrY bZ21xueeL2nYg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 168FF1804D7 for ; Fri, 7 Feb 2025 15:03:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 7 Feb 2025 15:03:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1738940755; bh=7dcVCbsCHzh1Ak2GBDDzB36rmsC7t43sQcFtYx8QaQg=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=Q+MS/IbBQ6A8vWDSHloE87f90Dtj/UF51l0aPqxFSn7W/oSNoA2zvfvDbDqsHZBaf 9Ti/3DhYUeykyZnFFnsVgK5mCn4cBhw9hw9jfwCdxlFcvEGTp+FLI8EheLjCnmjnkm EEVlJt8AAD9+lMX5pj6QE7bkwkCvKBVq9vozWDQoElB0f/A3mwf42BNuYh0kWYtf6+ KR6QyH751Uz9Ak7uY4huriuoUNbfaWZ/qZ4/SsmgcKUmpWW5F3J2AHzDnfuB9RaR+b +JyTIWslqv0VDBPx38D9FPpT/9QbQx9wl4o2qYBBOGltdvoj9FQj/S88S2d8pX0NRs lqlVEWTdC3Y9w== Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Fri, 07 Feb 2025 16:05:54 +0100 To: Rob Landers Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Short class syntax and inner classes In-Reply-To: References: Message-ID: <4bad8c629e2402b94a125e54da972586@bastelstu.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2025-02-07 15:23, schrieb Rob Landers: > Instantiation is done by static access: new Outer::Inner(1), which is > currently a syntax error. How would I access static members on an inner class without having ambiguity? `Outer::Inner::Const` already is valid syntax. > If this is a big "NO" (or if someone else has started working on this > and I'm just so happening to accidentally step on their toes, again): I > don't want to spend several days/weeks digging into the details for > classes. However, it would probably look something like the above. I believe Ilija has some proof-of-concept regarding file-private classes, which would sidestep the above problem of disambiguating static member access. Best regards Tim Düsterhus