What is the difference between...

Xinok xnknet at gmail.com
Fri Sep 7 03:08:04 PDT 2007


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

const(void)*
The pointer is mutable, but the data it points to must be const, even 
though it doesn't know the type of the data.

Janice Caron wrote:
> What is the difference between:
> 
> int f(const void * p, int len)
> 
> and
> 
> int f(const(void)* p, int len)
> 
> ?
> 



More information about the Digitalmars-d mailing list