[Bluej-discuss] How to call an accessor method in a different class?

Lon Levy LXL at oregon.k12.wi.us
Mon Nov 19 18:48:19 GMT 2007


Unfortunately, Aryeh, Java gives us no choice.  It is a notation that should make every algebra teacher cringe.  I do spend a lot of time emphasizing that = is not "equals" but = is "is assigned".  Pascal's := is superior IMO since it is at least a little different than =.  APL's <- assignment notation is even less confusing (not that I really want to program in APL ever again).

Have a great Thanksgiving,

Lon.

Lon Levy, MS-CSEd
Computer Science Teacher
Volunteer Computer Club Advisor
Oregon High School
608-835-1316
 
Lon.Levy at oregonsd.org
LXL at oregon.k12.wi.us
cs at levytree.net

non somnos requiem


>>> "Aryeh M. Friedman" <aryeh.friedman at gmail.com> 11/19/2007 12:22 PM >>>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lon Levy wrote:
> Hi Barry,
>
> I asked Michael Kolling to consider using this. with all instance
> references a few years ago.  He told me that it was an interesting
> idea, but that it was nonstandard enough that he was not going to
> include it in future versions of Objects First (which I think is
> otherwise a fine text).  Please consider making the request.  Maybe
> if enough of us relate the concept to him and to David Barnes, they
> will reconsider.

I also assume you require i=i+1 ;-)

- --
Aryeh M. Friedman



More information about the bluej-discuss mailing list