Re: [Vala] Final / Sealed classes in Vala



Jan Hudec wrote:
On Mon, Sep 28, 2009 at 12:34:48 +0200, Jürg Billeter wrote:
However, `sealed' is not meant for "static classes", that concept is not
encouraged in Vala as we support namespace methods.

C# documentation explicitly states, that combining static and sealed is
forbidden on classes, for precisely the same reason.

Well, it's not in Java but I think it could be useful in our case since
it would allow to define (mostly in a VAPI) a type that is returned by
some functions but that cannot be instantiated, nor it can't be used as
super type since the C definition doesn't provide a free or creation
function (I've found situations where this could be useful, avoiding the
needing of setting an empty free_function).





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]