Do we really need const?

Matti Niemenmaa see_signature at for.real.address
Mon Sep 17 03:50:10 PDT 2007


Bill Baxter wrote:
> There's of course Java.  Lots of enterprise software is written in Java,
> and yet Java does not have const.

Java has a limited form of const in final, which allows for both compile-time
constants and variables which can only be assigned to once.

See the "variables" and "fields" sections here:
http://renaud.waldura.com/doc/java/final-keyword.shtml

-- 
E-mail address: matti.niemenmaa+news, domain is iki (DOT) fi



More information about the Digitalmars-d mailing list