How do java programmers cope with java missing c++ const?
- From: josh.s17@xxxxxxxxx
- Date: 28 Feb 2006 03:46:04 -0800
I've been working with java for a while now, but I miss the ability to
pass around objects that can't be modified, as is possible with the c++
const keyword. Is it just me or do others find this a limitation of
java? I've read the way to do it in java is to pass around immutable
objects however that seems a lot less flexible than having the ability
to pass a const reference to a mutable object as can be done in c++.
.
- Follow-Ups:
- Re: How do java programmers cope with java missing c++ const?
- From: Andrea Desole
- Re: How do java programmers cope with java missing c++ const?
- From: Roedy Green
- Re: How do java programmers cope with java missing c++ const?
- From: Michael Redlich
- Re: How do java programmers cope with java missing c++ const?
- From: opalpa@xxxxxxxxx opalinski from opalpaweb
- Re: How do java programmers cope with java missing c++ const?
- From: Vitaly
- Re: How do java programmers cope with java missing c++ const?
- From: Hendrik Maryns
- Re: How do java programmers cope with java missing c++ const?
- Prev by Date: Re: Using interfaces "everywhere" due to (EMF) modelling framework
- Next by Date: Re: Transmitting strings via tcp from a windows c++ client to a Java server
- Previous by thread: Re: Using interfaces "everywhere" due to (EMF) modelling framework
- Next by thread: Re: How do java programmers cope with java missing c++ const?
- Index(es):
Relevant Pages
|