DMD 2.000 alpha release

Jascha Wetzel firstname at mainia.de
Wed Jun 20 08:02:29 PDT 2007


considering the 3 declarations
1) const(char)* p;
2) const(char*) p;
3) const char*  p;

i identify 3 entities in play here: the character *p, the address of 
it's memory cell p and the location where that address is stored &p. the 
language let's us change p and *p, &p is always invariant.
in 3) p and *p are const,
in 2) p is mutable and *p is const
and 1) is the same!?

what is const in 2) that is mutable in 1) ?



More information about the Digitalmars-d-announce mailing list