I can’t seem to find practical use of pointers in objective language. I know c# and java and there is no need to use pointers (thats what i think and it is also considered as dangoures coding by c# and java) but now im starting to learning objective-c and i cant figure out why you have to always create pointer to an object instance.
Share
well, in c# you do actually use pointers, tho not explicitly. Think of delegates, anonymous types etc etc. the garbage collection in c# can also take a hit if you are not managing your use of these reference types efficiently.
in obj-c, the playing surface is a little more exposed. I’d imagine that approach has as many cons as it has pros for exactly the reasons you stated above re the danger of memory gpf’s etc.
slowly slowly, catchie monkey 🙂