Il 13/06/2012 15:36, Anthony Liguori ha scritto:
Concrete doesn't mean "instantiatable by the user". It means
"instantiatable period".
Interfaces are not supposed to be instantiatable by anyone. The fact
that object_new() is used to create the interface is an internal
implementation detail.
Whose side effect is that interfaces need to be concrete.
Interfaces are stateless and by definition, never have an implementation
on their own. So object_new() of an interface type directly results in
a useless object.
Yes, and that's why you needn't really care about what the user does.
Garbage in, garbage out...