Quote:
Originally Posted by Jared341
What is it that you want to do with pointers that Java's pass by reference system can't do exactly?
|
Before i answer this, wow what a discussion this simple pointer thing turned into.
Anyway, it just bothers me that java turns the idea of pointers from a more numerical approach to an object-oriented approach. I like knowing that the variable i am passing into a function is explicitly a pointer, not something determined by java. Its also bothersome that for primitive datatypes such as int's an entirely different datatype (Integer) is required if you want to pass it by reference into a function (i know there is a system to go around this but god knows how much overhead it incurs, along with the garbage collection of the implicit object).
I'm a C man. i need to know what is happening with my code at all times. It helps (
me) with debugging and low-level optimizing a lot.
also: double/triple/quad/etc pointers.