Used in a Sentence

pointer

Definitions, parts of speech, synonyms, and sentence examples for pointer.

Editorial note

If you try to cast a pointer into your function type, you'll get a runtime error, not a compile time one.

Examples16
Definitions4
Parts of speech1

Quick take

Anything that points or is used for pointing.

Meaning at a glance

The clearest senses and uses of pointer gathered in one view.

noun

Anything that points or is used for pointing.

noun

One who points.

noun

A needlelike component of a timepiece or measuring device that indicates the time or the current reading of the device.

Definitions

Core meanings and parts of speech for pointer.

noun

A needlelike component of a timepiece or measuring device that indicates the time or the current reading of the device.

Example sentences

1

If you try to cast a pointer into your function type, you'll get a runtime error, not a compile time one.

2

Container element types are almost never declared const unless their values are truly immutable (in this case the pointer is mutable, but the underlying memory is not, which is kind of strange).

3

They're useful anywhere you have a data that is sometimes small enough to fit within a single pointer-sized chunk, and sometimes isn't.

4

Unfortunately this isn't an option in Objective-C because the compiler can't make any assumptions about the tagged pointer implementation, and that means objc_msgSend has to start fresh at each invocation.

5

For pointers, however, the final keyword in Java limits the ability to change the variable holding the pointer, not to what it references.

6

The potential trouble is if the function pointer goes through a void* wormhole.

7

For instance, you won't get it on accessing the function pointer with dlopen/dlsym.

8

Whether it's worth the cost depends on how expensive memory allocation is, how expensive pointer indirection is, how many objects are able to fit within a tagged pointer, and how expensive the tag check is.

9

You can convert between pointers of different object types, and you can convert between pointers of different function types, but you're not allowed to convert between a pointer of object type and pointer of function type (c.f.

10

But on DSPs, it's common for data and code memory to be distinct address spaces, and the two pointer types aren't necessarily the same size.

11

That was the perfect place to hide the pointer for a linked list I wanted to create in an intermediate step.

12

Or if you to, say, move a reference all the way down into a pointer (or vice versa) to interop with C or other legacy code.

Quote examples

1

Java (the language) does not possess the semantics to express "the pointer given to a method cannot allow changes to what it points."

2

They don't have a "this" pointer with associated fields to manipulate.

3

I expect the string "née" would become a tagged pointer string, for example.

4

The equivalent in C++ would be: SomeClass * const foo = &instanceOfSomeClass; Here, the pointer "foo" could not change, but operations changing foo would be allowed.

Frequently asked questions

Short answers drawn from the clearest meanings and examples for this word.

How do you use pointer in a sentence?

If you try to cast a pointer into your function type, you'll get a runtime error, not a compile time one.

What does pointer mean?

Anything that points or is used for pointing.

What part of speech is pointer?

pointer is commonly used as noun.