On Fri, Jul 17, 2009 at 8:32 AM, Sam Hu<samhudotsa...@gmail.com> wrote:
> Jarrett Billingsley Wrote:
>>
>> Because 'new A' is not an lvalue.  Why do you want to return a
>> reference to a class, anyway?  Classes already *are* by reference.
>
> Thank you.I got it.
> So how about q2:
> but why this one also works?
> ref createA(){return new A;} // no return type A?
>
>

I have no idea.  Bug?

Reply via email to