Page 1 of 1

support for namespace enclosed mixin?

PostPosted: Sun Nov 01, 2009 7:41 am
by gauthier
I'm trying to play with mixin support but encounter this issue:

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.

Re: support for namespace enclosed mixin?

PostPosted: Wed Nov 07, 2012 10:36 am
by Charles
Just for the record in case someone finds this thread, this problem was fixed some time ago and is covered by the test suite. I just didn't respond to this message.