Why can't we define re-assignable const reference variable?

Christopher Wright dhasenan at gmail.com
Sat Feb 16 12:17:06 PST 2008


Janice Caron wrote:
> On 16/02/2008, none <z at gg.com> wrote:
>>  So why can't we have both (just as in C++):
> 
> This has been covered so many times before, but in summary, allowing
> that would completely break the type system.

What's the difference (save polymorphism) between a pointer to a struct 
and a reference to an object?



More information about the Digitalmars-d mailing list