What is the difference between...

torhu no at spam.invalid
Fri Sep 7 13:08:34 PDT 2007


Xinok wrote:
> const void*
> This can also be read as:
> const(void*)
> This means that both 'void' and the pointer are const.

'const(void*)' is the same as 'const(void)*'.  The reason is explained here:
http://www.digitalmars.com/d/final-const-invariant.html
Scroll down to "Invariant Doesn't Apply To Declared Symbols".



More information about the Digitalmars-d mailing list