Forums

support for namespace enclosed mixin?

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

support for namespace enclosed mixin?

Postby gauthier » Sun Nov 01, 2009 7:41 am

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.
gauthier
 
Posts: 116

Re: support for namespace enclosed mixin?

Postby Charles » Wed Nov 07, 2012 10:36 am

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.
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 35 guests

cron