Re: How do java programmers cope with java missing c++ const?




"Jeffrey Schwab" <jeff@xxxxxxxxxxxxxxxx> wrote in message
news:pe0Nf.27304$915.8884@xxxxxxxxxxxxxxxxxxx
Vitaly wrote:
C++ const in java is final!!!

No, it's not.

class Foo {

private final StringBuilder builder = new StringBuilder();

void methodToCallAnyTimeILike() {

builder.append("Not particularly constant is it really?");
}
}

--
Mike W




.



Relevant Pages

  • FA LP Naomi Cottage Songs SEALED Rare Private
    ... To view Naomi Cottage Songs SEALED Rare Private 390108455742 go to: ... Mike Cooper Do I Know You? ... Morning Glory Two Suns Worth Psych 390108403315 ...
    (rec.music.marketplace.vinyl)
  • Re: printing using tabs
    ... Mike: ... text boxes and some combo boxes for user selections. ... Private Declare Function SendMessage Lib "user32" Alias _ ... Dim retval As Long, oldmode As Long ...
    (microsoft.public.vb.general.discussion)
  • Re: The Republican Disease - A different perspective
    ... Mike Hendrix wrote: ... but giving private companies the authority to make arrests brings about complications that no legislator wants to get involved with. ... See we are in agreement that when compared to a free enterprise military, government military is a failure. ... Bruce, I tend to be content with local fire protection, police ...
    (rec.outdoors.rv-travel)
  • Re: matusow makes usa today
    ... "When someone has had their fill of his mouth, they will look for the one ... Whether personal or private or not." ... I don't know for sure that Sheikhan staked Mike. ... "player money" Daniel should be talking about on TV is the ...
    (rec.gambling.poker)