Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67224 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51931 invoked from network); 30 Apr 2013 20:58:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2013 20:58:25 -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.220.179 cause and error) X-PHP-List-Original-Sender: rasmus@mindplay.dk X-Host-Fingerprint: 209.85.220.179 mail-vc0-f179.google.com Received: from [209.85.220.179] ([209.85.220.179:46001] helo=mail-vc0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/3A-18873-07030815 for ; Tue, 30 Apr 2013 16:58:24 -0400 Received: by mail-vc0-f179.google.com with SMTP id hz10so826986vcb.38 for ; Tue, 30 Apr 2013 13:58:22 -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=NA+mGP577vaUCHXw16xT8zeBErVCXXTmFEnnFgbYblg=; b=g3hthJLdkNi0kd8NFR1tHhHoxRMiKg6EEteJJU9sRibO9isjR0EI5OvII/1lsy11iv OBGt/W7LINFczh8Augbs70hev0skMcLo9wR9Bh80BOinhwXobSDUdkO411YhShj1huhe D9doS5SIII9ulRKcwM/g0STRNeCdIFDoNfj2msAp4AK67+MgRpu4TT4YU4E3lAGzOV7M sBa1KJd51dfmdVxuYJOvYDCUUHSZ9Z16QRbkGTV7CupiTTuiGUGDLOTyVvIHffxCyUom 0pE87cj5JHiXEln3790ywUtHDD/V2tmRep3QcHdetiwn8ky874AhFzbiPazITZxzYJcs WYww== MIME-Version: 1.0 X-Received: by 10.221.9.9 with SMTP id ou9mr21345vcb.15.1367355502031; Tue, 30 Apr 2013 13:58:22 -0700 (PDT) Received: by 10.58.28.134 with HTTP; Tue, 30 Apr 2013 13:58:21 -0700 (PDT) In-Reply-To: References: <6245ED6B-2BF7-47B7-80C0-D3B3D8E0B312@strojny.net> Date: Tue, 30 Apr 2013 16:58:21 -0400 Message-ID: To: ALeX Cc: Ferenc Kovacs , Michael Wallner , Lars Strojny , PHP internals Content-Type: multipart/alternative; boundary=089e0122947afb3c4604db9a4221 X-Gm-Message-State: ALoCoQnjamRc/AOa+A7K3iZH1G/8P5crj2tfzFBTfT9GYXWdYAGjM2KGgroIvF9AJVq8L2QwzBzc Subject: Re: [lists.php] Re: [PHP-DEV] property de-referencing From: rasmus@mindplay.dk (Rasmus Schultz) --089e0122947afb3c4604db9a4221 Content-Type: text/plain; charset=ISO-8859-1 I don't think that's necessary - the point of being able to do this, is to apply meta-programming techniques, so in most situations, what matters is the ability to quickly create object/property-references... using them will usually happen inside some service component, e.g. a form-helper or object/relational-mapper. Having a short syntax for that is much less relevant - what matters if easy (and of course static) creation of references to those objects/properties. On Tue, Apr 30, 2013 at 4:36 PM, ALeX wrote: > Just an idea: why not also use ^ (or another operator) to access the > value? (maybe as an additional way to get/setValue) > > $foo = ^$user->name; > > echo 'Hello '.^$foo; > ^$foo = 'Bob'; > > (using the same operator will conflict when you are accessing a > property of an object which is a PropertyReference) > --089e0122947afb3c4604db9a4221--