2 ms·
So from now on we should call every structure which is implemented inside library, compiler or JIT using a pointer, a "pointer"? > In computer science, a point
by seba_dos1 12y ago
So from now on we should call every structure which is implemented inside library, compiler or JIT using a pointer, a "pointer"?
> In computer science, a pointer is a programming language object, whose value refers to (or "points to") another value stored elsewhere in the computer memory using its address.
You have your answer here. In JavaScript ("programming language"), v ("object") has a value of JavaScript structure called object. Internal representation of v sure does use a pointer, but from JavaScript perspective, it surely is NOT a pointer. If you get the value of v in JavaScript, you don't get memory address ("value [that] refers to (or "points to") another value stored elsewhere in the computer memory using its address") - you get the object itself. That's what references do, not pointers.