" It appeared today, and we do not know a single name for it. I.e. $this->Session +4 naming conventions benhowdle89...">

Is there a name for this: "->"

It appeared today, and we do not know a single name for it. I.e. $this->Session

+4
source share
7 answers

I will consider the perspectives of C or C ++ when answering this question, although the absence of a -> in languages ​​like Java seems to fit the definitions below.

According to ANSI C Standard , Section 6.5.2.3 : the " -> " operator -> defined as:

  • "Structure / join pointer operator",
  • Member Access Operator ( . And -> ),
  • "Pointer operator,

Compare the operator . , which is defined in Section 6.3.2.1 1 as the "member / union member operator". A member access operator β†’ is defined as one of several punctuation operators in Section 6.4.6 1 :

β€œA punctuator is a symbol that has independent syntactic and semantic significance. Depending on the context, it can indicate the operation that must be performed (which, in turn, can give a meaning or designation of a function, produce a side effect or a combination thereof) in this it is known as an operator (other forms of the operator also exist in some contexts.) An operand is an object on which the operator acts.

Cm:
ISO / IEC 9899: TC3, draft Committee - Septermber 7, 2007, WG14 / N1256 http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf

+1
source

I would call it an arrow, but it is certainly subjective :)

0
source

The C ++ manual calls it as "Member b of the object pointed to by a," so can this be a pointer operator?

In PHP, it is called an object operator .

0
source

$ this refers to the current module you are in, and the arrow sign is used to refer to the memory. Check it out for a concept. For php examples see here

0
source

How about this: "Object Operator"

0
source

This came wrt c ++ as part of another question .

Indeed, the answer will depend entirely on the language used, although some people use the term β€œarrow operator” as a visual signal, which can be a language agnostic.

0
source

All Articles