Why can't structs be derived from?
Simen kjaeraas
simen.kjaras at gmail.com
Wed Mar 16 14:39:40 PDT 2011
On Wed, 16 Mar 2011 22:37:13 +0100, Steven Schveighoffer
<schveiguy at yahoo.com> wrote:
> On Wed, 16 Mar 2011 17:24:34 -0400, Simen kjaeraas
> <simen.kjaras at gmail.com> wrote:
>> I agree. I also prefer alias this, both for its flexibility and its
>> distinctiveness. I just felt that the slicing problem is trivially
>> fixed,
>> and thus need not be a part of the discussion.
>
> The slicing problem is not encountered in this example. Pointing at the
> base of a derived object does not slice the object. Your rule is too
> strict ;)
True. I was thinking of the problem of the missing vtable. Related, but
not quite the slicing problem.
--
Simen
More information about the Digitalmars-d
mailing list