Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114613 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 70651 invoked from network); 26 May 2021 10:52:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 May 2021 10:52:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DE6951804CC for ; Wed, 26 May 2021 04:03:48 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 26 May 2021 04:03:48 -0700 (PDT) Received: by mail-qk1-f180.google.com with SMTP id i5so479399qkf.12 for ; Wed, 26 May 2021 04:03:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=tkBjP0Wb/m14vVwmcIwyfohZuBOkgGMB7jiDKf24TGA=; b=J+Wk2428WkAf0nHy3XMZ6gGj1HaZriJVhaYMQV/DdkZb/Tw73YqsJQ0I1fT8+YryQU kf9LUfqmiF34gn0OCuSBxcT4zKHqeK00K8wLxuM7XQYTyQ3QTRCTCXJTP7qeybR9DLJp HN4Dp7uk5sE9v+WLBQNuB8Df/XQLRd8yeFYfkr5tJQxgA4jzoIf9VpoDr0C8sjm3brPc rdFRsgFode5vUFI+f7fB460QY0IQOuwzcvMB6bw5WGO67XSzZcQ7qsUe055yqZSZJynG N2MhDfQ2cx7bf73d0D1NKiOp4A+dTShlpM1YavkjM39IfyaZCUj5SixmlOHIY7qhV+Wv kjNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=tkBjP0Wb/m14vVwmcIwyfohZuBOkgGMB7jiDKf24TGA=; b=ILMkm7Cjgi/b0h5WAVGKwcC3dCH7ucQ0mL2+v1AnPeqG3DLiD4vFzt2pPSYYbz/ebH vkMLX+Y4EPmEwyUAGKwb76qnpWeZVJfPvXNCXgxn34KHX1u4Srk4IUwyFJs0g5T8FOsh 2wf0DS6fA35viKbkRPAEX+mT7EWkaE/y0xmV7eDwK5B/7LSAqzCBtOFEjFV3DLO5/LGG YbWca9lE2CBoHWXWpi8h82YxaVx8wEMftR5pCVWgD7TjDfaN3hmOh2mekoQNDH4ACGxa +DVpiUegUzykHSo1uDM2tWe6lsz9Pvx0IIoykZAQWbpd/iS66mOx4qpK/ahhXD3mB6rS lnVw== X-Gm-Message-State: AOAM5332hWd7FX6MhXKziwoX8hvDgMqGbGzPgLVrDGuG50ds7nmUoMzv u6XFlMNABS3dMRLAQQUFvqyspA== X-Google-Smtp-Source: ABdhPJyDrEh40BYPx+xNRZDVnZ9qd+EdOVO51+jFChF8KRPmq6uP+3xbpWUXGkeQZKo5dfL9itopmw== X-Received: by 2002:a05:620a:2191:: with SMTP id g17mr40323983qka.296.1622027026312; Wed, 26 May 2021 04:03:46 -0700 (PDT) Received: from [192.168.1.10] (c-24-98-254-8.hsd1.ga.comcast.net. [24.98.254.8]) by smtp.gmail.com with ESMTPSA id y19sm1291883qki.15.2021.05.26.04.03.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 May 2021 04:03:45 -0700 (PDT) Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_FEF539EA-0729-4E86-A847-FEE21F2942AC" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.6\)) Date: Wed, 26 May 2021 07:03:41 -0400 In-Reply-To: Cc: "internals@lists.php.net" To: =?utf-8?Q?Iv=C3=A1n_Arias?= References: X-Mailer: Apple Mail (2.3608.120.23.2.6) Subject: Re: [PHP-DEV] A little syntactic sugar on array_* function calls? From: mike@newclarity.net (Mike Schinkel) --Apple-Mail=_FEF539EA-0729-4E86-A847-FEE21F2942AC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On May 25, 2021, at 6:28 PM, Iv=C3=A1n Arias = wrote: >=20 > Hi all, >=20 > It sounds like scalar objects by Nikita: = https://github.com/nikic/scalar_objects Yes, but Nikita wrote this note about technical limitations at the = bottom of the repo README: Due to technical limitations, it is not possible to create mutable APIs = for primitive types. Modifying $self within the methods is not possible = (or rather, will have no effect, as you'd just be changing a copy). Does that mean that the scope of Nikita's proof-of-concept could not = modify $self, or that it is simply not possible to modify $self given = limitations inherent in PHP? Further, does that only apply to scalars, or might possible arrays could = be different? -Mike= --Apple-Mail=_FEF539EA-0729-4E86-A847-FEE21F2942AC--