views:

472

answers:

9

Possible Duplicate:
what is the official name of C++'s arrow (->) operator?

I'm referring to the C operator which is used on pointers to mean the same think as the dot (".") would mean on the value. Incidentally, I'm most interested in how to pronounce it in perl as in $hello->world().

+1  A: 

Self-analysing, I find I pronounce it internally as 'dot', though this is obviously unusably confusing when talking to other people. In perl it's basically a genitive, so 'hello's world method' might be a way to put it.

Otherwise, arrow.

Tom Womack
A: 

if it is method i say: "call a method", if field - "get/set field"

Andrey
A: 

Its a pointer to something(function/variable) (for example in c++). So call it a function call via a pointer or something like that?

PoweRoy
whats with the downvotes and no comments?
PoweRoy
+6  A: 

I've always called it Arrow.

I'm refering to the C operator which is used on references to mean the same think as the dot (".")

By the way thats wrong ... its pointers not references. References are acessed via the dot operator in C++ (And don't exist in C).

Goz
In C, there are no references.
unwind
Oh yeah, thanks. I don't ever do C any more.
tster
@ Unwind: Good point ... I just assumed it was a C++ question :)
Goz
@unwind: Actually, the C standard describes pointers thus: "A pointer type describes an object whose valueprovides a **reference** to an entity" - so I would argue that C does have "references", but the word doesn't mean exactly the same thing in a C context as it does in a C++ context.
caf
A: 

Hmmm... Right Arrow or just Arrow is a nice way to say it, everybody will know what you're talking about in a C/C++ context. Technically, dereference and member access operator is a proper way to name it.

fortran
A: 

I normally pronounce it "arrow". I don't think there is an established norm, though.

Marcelo Cantos
+2  A: 

I usually don't pronounce it at all, focusing instead directly on the words and not the symbols.

Donal Fellows
A: 

I don't pronounce it usually, but if I really had to say for things like "x->y", I would say "pointer x's member y". Or "x right arrow y".

shinkou
A: 

I would say "Calls 'world' of 'hello'".

Stiefel