Re: How do java programmers cope with java missing c++ const?
- From: Andrea Desole <news@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 18:57:34 +0100
josh.s17@xxxxxxxxx wrote:
I've been working with java for a while now, but I miss the ability toI miss it a bit, but if it's necessary you can do something similar, not with an immutable object, but with an "immutable interface":
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++.
http://home.arcor.de/kkaehler/2005/04/no-const-in-java.html
.
- 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: Re: Need Help with Paint Proccess
- Next by Date: Re: a question relating to job application
- Previous by thread: Re: How do java programmers cope with java missing c++ const?
- Next by thread: How to integrate MsWord with Java Web Application and Linux ?
- Index(es):
Relevant Pages
|