Page 1 of 1
how would you say this in plain english?
Posted: Wed May 03, 2006 3:53 pm
by Burrito
$this->something ?
Posted: Wed May 03, 2006 4:02 pm
by feyd
the "something" property.
Posted: Wed May 03, 2006 4:17 pm
by Christopher
Feyd is right, but I think most programmers don't even add the "property" part in their head when they program -- it's just "something." That's because the class is namespaced out of the rest of the application, so there is no reason to keep referring to the class name when you are coding withiin the class' namespace.
I also think when referring to properties, for example $user->something you would just say "user something" most of the time. Same with methods, for $user->something() you would say something like "call user something"
It is interesting because the manual, by analogy, refers to "->" as "the pathname separator", but to the internals group it is called "the object operator" which I think is the perferred name.
Posted: Wed May 03, 2006 5:22 pm
by Burrito
no no no...I mean how would you say that as if you're spelling it out.
ex:
http://www.blah.com = double-u double-u double-u dot blah dot com
how would you say:
$this->something
this arrow something?
Posted: Wed May 03, 2006 5:29 pm
by Christopher
"this object operator something" but who would understand you? "this property something" or "this method something" would probably be understood.
Posted: Wed May 03, 2006 5:37 pm
by feyd
this dereference (deref for short) something.
Posted: Wed May 03, 2006 6:16 pm
by Burrito
feyd wrote:this dereference (deref for short) something.
thank you.
Posted: Wed May 03, 2006 7:20 pm
by Nathaniel
feyd wrote:this dereference (deref for short) something.

Posted: Thu May 04, 2006 4:25 am
by Chris Corbyn
Nathaniel wrote:feyd wrote:this dereference (deref for short) something.

I think it comes from C. Someone was rambling on to me the other day about deferencing pointers but I switched off after the first sentence

Posted: Thu May 04, 2006 8:42 am
by feyd
yes, it's a C thing.
Posted: Thu May 04, 2006 11:43 am
by timvw
In php parlance -> would be "T_OBJECT_OPERATOR".