Re: Adding const to java

"Nils Hagge" <hagge@isde.uni-hannover.de>
6 Nov 2002 11:51:09 -0500

          From comp.compilers

Related articles
Adding const to java lashari@hotmail.com (Ghulam Lashari) (2002-10-24)
Re: Adding const to java onderkarpat@yahoo.com (Onder Karpat) (2002-11-06)
Re: Adding const to java joachim_d@gmx.de (Joachim Durchholz) (2002-11-06)
Re: Adding const to java titzer@expert.ics.purdue.edu (Ben L. Titzer) (2002-11-06)
Re: Adding const to java hagge@isde.uni-hannover.de (Nils Hagge) (2002-11-06)
Re: Adding const to java C.vanReeuwijk@twi.tudelft.nl (Kees van Reeuwijk) (2002-11-06)
| List of all articles for this month |
From: "Nils Hagge" <hagge@isde.uni-hannover.de>
Newsgroups: comp.compilers
Date: 6 Nov 2002 11:51:09 -0500
Organization: Universitaet Hannover
References: 02-10-101
Keywords: Java
Posted-Date: 06 Nov 2002 11:51:09 EST

There is already the "final" modifier doing that job:


class x {
    final String someConstantString = "Hallo Leute!";
}


This even works in a local scope:


class x {
    void m()
    {
            final int localConstant = 10;
      }
}


"Ghulam Lashari" <lashari@hotmail.com> schrieb im Newsbeitrag
> I have implemented "const" modifier in Java Programming Language. The
> semantics of const are similar to that of C++.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.