", i.e. Method $ class -> () $class->method() ^ | What's the correct terminology for this? ...">

What is the correct terminology for "->", i.e. Method $ class -> ()

$class->method()
      ^
      |

      

What's the correct terminology for this?

+2


source to share


8 answers


I have always called the symbol "arrow".



+5


source


Depends on the language:

-PHP, I believe it was just used to access class members

-C or C ++ on the other hand, it is used for pointer deletion and member access. This is pretty much just syntactic sugar.



pointer->member

      

equivalent to

(*pointer).member

      

+3


source


I believe that's called "arrow notation", assuming, of course, you're talking about PHP. What most publications, articles, and the PHP website call it, is the way my brain speaks in sight.

+1


source


Membership access operator.

+1


source


I think C ++ calls it the "pointer access operator".

+1


source


i would say: dereference operator

see: http://en.wikipedia.org/wiki/Dereference_operator

after some discussion with good commenters, the final terminology might be:

dereference and field access operator that can be abbreviated: - field access operator

0


source


This is the "select member" operator or the "member by pointer" operator.

MSDN Library: C ++ Operators
Wikipedia: C ++ Developers

0


source


In PHP it is called T_OBJECT_OPERATOR

. See List of Parser Tokens in PHP Manual.

0


source







All Articles