Re: How do java programmers cope with java missing c++ const?
- From: "Vitaly" <ns_cyril@xxxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 17:05:01 +0200
C++ const in java is final!!!
<josh.s17@xxxxxxxxx> wrote in message
news:1141127163.990162.225510@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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: Jeffrey Schwab
- Re: How do java programmers cope with java missing c++ const?
- References:
- How do java programmers cope with java missing c++ const?
- From: josh . s17
- How do java programmers cope with java missing c++ const?
- Prev by Date: help with hidden variables...
- Next by Date: Re: effects of "final" in parameters
- Previous by thread: Re: How do java programmers cope with java missing c++ const?
- Next by thread: Re: How do java programmers cope with java missing c++ const?
- Index(es):
Relevant Pages
|