What is the difference between...

Janice Caron caron at serenityfirefly.com
Fri Sep 7 04:54:43 PDT 2007


-----Original Message-----
From: digitalmars-d-bounces at puremagic.com 
[mailto:digitalmars-d-bounces at puremagic.com] On Behalf Of Daniel919
Sent: 07 September 2007 12:39
To: digitalmars-d at puremagic.com
Subject: Re: What is the difference between...

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

It is? Why? Why doesn't it mean x is a const int?

So f(const(int)* x) means x is a pointer to const int, but f(const(int) x) does 
not mean x is a const int? Now I'm very, very confused.

Why am I not getting this?




More information about the Digitalmars-d mailing list