What is the difference between...

Daniel919 Daniel919 at web.de
Fri Sep 7 04:39:23 PDT 2007


Janice Caron schrieb:
> Even more simply put, what is the difference between:
> 
> (1) void f(const int x)
You can't assign an other int to x.

> (2) void f(const(int) x)
Useless, like all: const/invariant(simplestoragetype)

> (3) void f(const const(int) x)
Just like (1)



More information about the Digitalmars-d mailing list