What if D would require * for reference types?
Denis Koroskin
2korden at gmail.com
Mon Jan 18 12:23:31 PST 2010
On Mon, 18 Jan 2010 21:08:57 +0300, Trass3r <un at known.com> wrote:
>> How is that confusing to people with a C background?
>>
>
> Foo* foo = new Foo;
>
> would make people think foo is a pointer to an instance of Foo, not a
> reference.
What's the difference?
> Furthermore it would be inconsistent with normal pointers (int*, ...)
Why is in inconsistent?
More information about the Digitalmars-d
mailing list