Hiding class pointers -- was it a good idea?

eao197 eao197 at intervale.ru
Thu Aug 16 10:24:55 PDT 2007


On Thu, 16 Aug 2007 21:04:23 +0400, eao197 <eao197 at intervale.ru> wrote:

> class C { ... }
> C c; // Error! Value type cannot be used as value.
> C * c; // OK. Pointer to reference type.

Oops! Typo :((
Should be:

C c; // Error! Reference type cannot be used as value.

-- 
Regards,
Yauheni Akhotnikau



More information about the Digitalmars-d mailing list