const

Walter Bright newshound1 at digitalmars.com
Fri Mar 28 11:52:42 PDT 2008


Oskar Linde wrote:
> You get some quite different beasts that way due to the transitive 
> const. For example, what is the difference between c and d? (Apart from 
> them being distinct types)

They do have distinct types, but const(int) is implicitly convertible to 
int, so the use cases do work out.



More information about the Digitalmars-d mailing list