Why are pointers frightening?

Started by
42 comments, last by Beer Hunter 18 years, 12 months ago
IMHO, pointers are frightening because you want them to.
When I first learned c/c++, I always read in tutorials and forums that they were really hard bla bla, but put some effort on learning how to use them and never had big issues...

And also, I think that is one of the reasons behind good publicity to some languages like Java when they say they dont have pointers (well, at least not on the surface, if you know what I mean), but I think those are great (pointers that is)
Advertisement
It can be difficult for beginners... especially while learning with an API like DirectX which features type-defined pointers.

class IDirect3DVertexBuffer9*
typedef IDirect3DVertexBuffer9* LPDIRECT3DVERTEXBUFFER9

nasty

a style I've seen is using math classes such as Vector3, Matrix4x4, and Plane, etc, with reference parameters and the other classes using pointers.
Lee_ Is that really your work on your homepage? cause DAMN, that's very good.
one..
Quote:Original post by erjo
Pointers don't get scary until you reach this:
(*(void (*)( CharData *, char *))Cmds.DoFun) ( ch, Command );
Is it more or less scary that I understand that code?

This topic is closed to new replies.

Advertisement