support for namespace enclosed mixin?
Posted: Sun Nov 01, 2009 7:41 am
I'm trying to play with mixin support but encounter this issue:
is it possible to define mixin inside a namespace? the compiler doesn't seems to understand it.
mixin IsOk
var isOk as bool is public
class Ok adds IsOk
pass
namespace MixinWithinNamespaces
mixin IsKo # compiler error: expecting a namespace member but got "mixin"
var isKo as bool is public
class Program
shared
def main
ok = Ok()
print ok.isOk
is it possible to define mixin inside a namespace? the compiler doesn't seems to understand it.