preparing for const, final, and invariant

torhu fake at address.dude
Fri May 18 13:04:10 PDT 2007


Manfred Nowak wrote:
> Walter Bright wrote
>> Making copies is allowed.
> 
> A copy of a reference is not the reference itself?
> 
> Then `g = a;' does not make a copy of the adress contained in `a'?

It does make a copy, but if g is 'scope', you're only allowed to have 
local copies of a.

This would be fine:

int[] b = a;

> 
> WHat does it do then?
> 
> -manfred



More information about the Digitalmars-d-announce mailing list