Is all this Invarient **** er... stuff, premature optimisation?

Me Here p9e883002 at sneakemail.com
Mon Apr 28 20:57:22 PDT 2008


Walter Bright wrote:

>Me Here wrote:
>>Just as the answer to the occasional hit-and-run death is not banning  
>>cars, so fixing unintentional aliasing in threaded applications does not  
>>lie in forcing all character arrays to be immutable.
>
>D does not force all character arrays to be immutable. You can use mutable 
>ones by declaring them as:
>
>	char[]
>
>Reference types all come in 3 flavors: mutable, read-only-view-of (i.e. 
>const) and invariant.

Well no, but having lhe string libraries only accept and return invariant 
strings it amounts to much the same thing.

I'm disappointed that's the only point from my post worthy of reaction :(

-- 




More information about the Digitalmars-d mailing list