Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67222 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47248 invoked from network); 30 Apr 2013 20:24:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2013 20:24:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@mindplay.dk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@mindplay.dk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mindplay.dk from 209.85.212.47 cause and error) X-PHP-List-Original-Sender: rasmus@mindplay.dk X-Host-Fingerprint: 209.85.212.47 mail-vb0-f47.google.com Received: from [209.85.212.47] ([209.85.212.47:44210] helo=mail-vb0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/59-18873-36820815 for ; Tue, 30 Apr 2013 16:24:03 -0400 Received: by mail-vb0-f47.google.com with SMTP id x14so772147vbb.6 for ; Tue, 30 Apr 2013 13:24:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=f6hoVkX+7foblgZFxSpDCCDTiWe+uNQgEoYAj9bVb0Y=; b=fe95bE6PdQ8jIZucLDAHoIB7iC4Vh5wPEfjQ7uBt97QwYxB8dMqzu9qmYxFp75JFDH xuxSSFqw4hA1IpC1uKVWGjuxaUu59baQRADQFFVvsmZgv+TkY2EQRv3i1xbJOHM67xkP 1ad9KWXUhMGWaWn426JySoTKxVfYd/v36JUb1QkONoB2hjil3UmzdrrgcKdYmKUF2KAB D/CZTQY6nALNtGcI704YMy4gQlsKNxurbxZWL4EW+Nwvi9pDdeyqxwOpot1bQQLvi2sW Y59e9VTcnT8CEggWXAaGM3fEF4NLCWP6BEvy/IiyAdFUcmmOvrjAEANpWJZ4Gc0Ezqo9 UO6g== MIME-Version: 1.0 X-Received: by 10.58.144.133 with SMTP id sm5mr3054652veb.23.1367353440880; Tue, 30 Apr 2013 13:24:00 -0700 (PDT) Received: by 10.58.28.134 with HTTP; Tue, 30 Apr 2013 13:24:00 -0700 (PDT) In-Reply-To: References: <6245ED6B-2BF7-47B7-80C0-D3B3D8E0B312@strojny.net> Date: Tue, 30 Apr 2013 16:24:00 -0400 Message-ID: To: Ferenc Kovacs Cc: Michael Wallner , Lars Strojny , PHP internals Content-Type: multipart/alternative; boundary=047d7b675b262098c704db99c841 X-Gm-Message-State: ALoCoQlWiaUeKcJnYd9BekRGx9rW6TVC19ogzVkeFclx8xc9PG8dCygzr4w++83CtdvNrchVrDeu Subject: Re: [PHP-DEV] property de-referencing From: rasmus@mindplay.dk (Rasmus Schultz) --047d7b675b262098c704db99c841 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable That looks more pointless than evil to me - and no, I'm not suggesting anything of that sort. I'm proposing we need a way to statically reference an object property - the object property itself, not it's value: var_dump($user->name); // =3D> 'Rasmus' var_dump(^$user->name); // =3D> PropertyReference(class: 'User', propertyName: 'name', object:User(...)) $foo =3D ^$user->name; var_dump($foo->getValue()); // =3D> 'Rasmus' $foo->setValue('Bob'); var_dump($user->name); // =3D> 'Bob' Is that easier to understand? - Rasmus Schultz On Tue, Apr 30, 2013 at 1:01 PM, Ferenc Kovacs wrote: > > 2013.04.30. 14:00, "Rasmus Schultz" ezt =EDrta: > > > > > > > > > Do you mean something yucky like http://pecl.php.net/propro? > > > > > > > > I don't know what that is, and there is no description on that page. > > you can grasp the concept from the testcase: > > http://git.php.net/?p=3Dpecl/php/propro.git;a=3Dblob_plain;f=3Dtests/001.= phpt;hb=3DHEAD > > --047d7b675b262098c704db99c841--