Christopher Dillon | 21 Oct 2002 21:53
Favicon

About the "final" keyword...

Hi!

I was wondering if it was possible to have the "final" keyword
implemented...

It would obviously only have the scope of the current nameSpace but it
could prevent programmers that modify the code to do weird things (such
as changing the value ;D ) with some variables...

This may seem kind of weird, but I am working on a project were
BeanShell would fit pretty well, IF it had this functionnality...

If that seems not to be possible, is there a way to achieve the same
result?

Cheers
Chris

___________________________________________________________________
Haut Débit: Modem offert soit 150,92 euros remboursés sur le Pack eXtense de Wanadoo !
Profitez du Haut Débit à partir de 30 euros/mois : http://www.ifrance.com/_reloc/w

-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future 
of  Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ad.doubleclick.net/clk;4699841;7576298;k?http://www.sun.com/javavote
Pat | 25 Oct 2002 17:46

Re: About the "final" keyword...

On Mon, Oct 21, 2002 at 07:53:01PM +0000, Christopher Dillon wrote:
> 
> I was wondering if it was possible to have the "final" keyword
> implemented...
> 
> It would obviously only have the scope of the current nameSpace but it
> could prevent programmers that modify the code to do weird things (such
> as changing the value ;D ) with some variables...
> 
> This may seem kind of weird, but I am working on a project were
> BeanShell would fit pretty well, IF it had this functionnality...

It would be pretty easy to get this working... it was anticipated that we
would (on the list of things to do).

If you want to submit a bug report about (I'd consider it a bug, since the
keyword is there but it doesn't work) that would insure it doesn't
get missed in the future.

Thanks,
Pat

-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en

Gmane