Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Pointers

Name: Anonymous 2008-02-16 21:41

Pointers: what the hell are they good for?

Name: Anonymous 2008-02-16 21:45

>>1
Calling functions indirectly so that when you recompile them the changes are seen by all your code.

Name: Anonymous 2008-02-16 21:49

Finding things.

Name: Anonymous 2008-02-16 21:53

pointing

Name: Anonymous 2008-02-16 22:03

absolutely nothing.

Name: Anonymous 2008-02-16 22:11

>>5
SAY IT AGAIN

Name: Anonymous 2008-02-16 23:37

passing/moving items of arbitrary size in O(1), among things.
pointers.. in? C? x86 assembly? as a concept?

Name: Anonymous 2008-02-16 23:57

>>1
Von Neumann architecture would not work without pointers.

Name: Anonymous 2008-02-17 0:51

>>6
HOOO! YEAH! POINTERS!

it just doesn't sound as good.

Name: Anonymous 2008-02-17 6:37

>>1
Casting strings into integers.

Name: Anonymous 2008-02-17 6:39

What's the difference between point-free and regular programming when it comes to execution time?

cudder = tail

is as fast as

cudder x = tail x,

aye?

Name: Anonymous 2008-02-17 7:42

>>8
Is that so? I'm not so sure.

Name: Anonymous 2008-02-17 7:54

Using arrays of function pointers to emulate prototype-style OOP with structures.

Name: Anonymous 2008-02-17 13:48

They're mostly good for making jokes about "giving you a few pointers.", but they're also a crucial ingredient in the renowned Null Pointer Exception.

Name: Anonymous 2008-02-17 14:13

The pointer is essential to solving any programming problem. A pointer allows you to abstract some of your information. In most programming assignments one doesn't only use int, float, or any other primitive data types. They are called primitive data types because they only use 32 bits or less depending on your architecture. Most programs use abstractions to represent a single idea. For example, lets say I wanted to create a computer game with a person in it. In C I could create a struct with all the information a person would have (e.g. hair color, height, etc.). In C++ and Java I would create a class to represent the human. Pointers/references only store an address that points to the abstraction that was created, in our case a human. This allows easier manipulation of the "human" variable by enabling the programmer to pass a 32-bit address instead of megabytes of information to different functions of the same program.

In the long run pointers will save you a lot of memory space and other goodies mentioned above.

Good luck.

Name: Anonymous 2008-02-17 15:00

When all you have is a dereference operator -- everything is a pointer.

Name: Anonymous 2008-02-17 16:58

>>15
No it's not. The Turing machine does not use pointers, and can compute anything.

Name: Anonymous 2008-02-17 17:07

>>17
yhbt

Name: Anonymous 2008-02-17 17:33

>>18
yhbt

Name: Anonymous 2008-02-17 17:52

>>17
But the point of a turing machine isn't efficiency.

Name: Anonymous 2008-02-17 17:58

>>20
But >>17 shows that the statement "the pointer is essential to solving any programming problem" is false.

Name: Anonymous 2008-02-17 18:05

>>21
But that's false, pointers are there for efficiency.

Name: Anonymous 2008-02-17 18:23

>>22
But they're not essential.

Name: Anonymous 2008-02-17 18:35

>>23
I code in (scheme)

Name: Anonymous 2008-02-17 18:37

FUCK YOU ALL

Name: Anonymous 2008-02-17 18:38

lol j/k

Name: Anonymous 2008-02-17 19:11

or was i

Name: Anonymous 2008-02-17 21:21

or was *i

Name: Anonymous 2008-02-17 23:05

or was &i

Name: Anonymous 2008-02-17 23:26

or was ^i

Name: Anonymous 2008-02-18 10:05

or was !i

Name: Anonymous 2008-02-18 13:58

>>30-31
THOSE ARE NOT POINTERS

Name: Anonymous 2008-02-18 14:29

>>32
Those aren't the pointers you are looking for.

Name: Anonymous 2008-02-18 16:44

IP 0x41414141

Name: Anonymous 2008-02-18 17:39

>>34
Is that a perl -e 'print "A"x2048' or are you just happy to see me?

Name: Anonymous 2008-02-18 23:59

pointers
huh
whate are they good for
ABSOLUTELY NOTHING

Name: Anonymous 2008-02-19 3:13

My dog has no pointers.
How does he reference data through differing scopes?
Terrible!

Name: Anonymous 2008-02-19 3:22

i'll give you a pointer, stfu

Name: Anonymous 2008-02-19 3:25

A couple of pointers
------->
------->

Name: Anonymous 2008-02-19 15:07

I kind of understand pointers, but what about pointers to pointers?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List