intermixed...

> This is a simple sintaxis issue...
> parameters in java are not passes as pointers.. they are passed as values
> ( the memory address of the object in the heap )..

emm... that's a pointer :) passing variables by reference or value is
neither here nor there.

"pointer - An address, from the point of view of a programming language"
(from an online computing dictionary)

references - pointers - same thing really. ("The terms "pointer" and
"reference" are generally interchangable " - same dictionary)

>
> so.... if we are to be precise.... there are no real pointers in java...
> however.. the main difference with C/C++ is that you cannot do arithmetic
> operations with a pointer... thatīs where the "hiding" takes place

Yep, there are pointers... or references... java calls them references,
c/c++ calls them pointers - but they are the same thing. c lets you get at
the pointers and affect their values directly.  Java stops this, but you can
still change a pointer value - just assign it to a different object!
Automatic memory management and no pointer arithmatic is what makes java so
damm nice to anyone who's used c!

Daniel.


>
> Just my .2 cents
> Lucas
>
> ----- Original Message -----
> From: "Struts User" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Dakota Jack"
> <[EMAIL PROTECTED]>
> Sent: Tuesday, November 16, 2004 11:50 AM
> Subject: Re: AW: talking about paradigms
>
>
> > I agree with Jack. There are pointers everywhere in Java. Java learns
> > from C++ mistake by "hiding" error prone functionality such as
> > pointers.
> >
> > Joshua Block's book is not a Java Book for beginner. It is target for
> > experience developer. Probably you should look into Bruce Eckel's
> > on-line book for more information - http://64.78.49.204/
> >
> > I hope this helps.
> >
> > Lee
> >
> > On Tue, 16 Nov 2004 06:42:32 -0800, Dakota Jack <[EMAIL PROTECTED]>
> wrote:
> > > Hello, Leon,
> > >
> > > There are pointers in Java.  Every object is referenced by a pointer.
> > > Indeed, how else could an object be referenced?  I am not sure why you
> > > cited Joshua Bloch's book on this.  There is not, as Eddie said,
> > > pointer arithmetic.
> > >
> > > Jack
> > >
> > > On Tue, 16 Nov 2004 11:46:05 +0100, Rosenberg, Leon
> > > <[EMAIL PROTECTED]> wrote:
> > >
> > > >
> > > > And, taking in risk bringing in boredom in your life, there are NO
> > > > _pointers_ in java; if you don't believe me, try some books
> written by
> > > > java developers (i.e. Joshua Bloch, Effective Java Programming
> Language
> > > > Guide,
> > > > Regards
> > > > Leon
> > >
> > > --
> > > "You can't wake a person who is pretending to be asleep."
> > >
> > > ~Native Proverb~
> > >
> > > "Each man is good in His sight. It is not necessary for eagles to be
> crows."
> > >
> > > ~Hunkesni (Sitting Bull), Hunkpapa Sioux~
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to