Forums

Search found 35 matches: mixin

Return to advanced search

generic mixin

I don't know if this should be supported, but for completeness of weird syntax tests: mixin IsOk<of T> var isOk as bool is public def getFoo(v as T) as T return v class Ok adds IsOk<of int> pass namespace MixinWithinNamespaces class Program shared def main ...
by gauthier
Sun Nov 01, 2009 7:48 am
 
Forum: Discussion
Topic: generic mixin
Replies: 2
Views: 2136

generic method in mixin

I got internal error when compiling this: mixin IsOk var isOk as bool is public def getFoo<T>(v as T) as T return v class Ok adds IsOk pass namespace MixinWithinNamespaces class Program shared def main ok = Ok() print ok.isOk print ...
by gauthier
Sun Nov 01, 2009 7:45 am
 
Forum: Discussion
Topic: generic method in mixin
Replies: 0
Views: 1607

support for namespace enclosed mixin?

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" ...
by gauthier
Sun Nov 01, 2009 7:41 am
 
Forum: Discussion
Topic: support for namespace enclosed mixin?
Replies: 1
Views: 1853

Cobra March 2009 Update

... sample program was posted. -- A new WPF How To was added. -- A new Fractal Benchmark sample program was added. -- New or updated wiki pages: ---- MixIn ---- DotNetProjects The next update will be around May 1 for the month of April, but you can always keep up to date by following the discussion ...
by Charles
Fri Apr 10, 2009 12:56 am
 
Forum: News Announcements
Topic: Cobra March 2009 Update
Replies: 0
Views: 20789

Cobra March 2009 Update

... sample program was posted. -- A new WPF How To was added. -- A new Fractal Benchmark sample program was added. -- New or updated wiki pages: ---- MixIn ---- DotNetProjects The next update will be around May 1 for the month of April, but you can always keep up to date by following the discussion ...
by Charles
Fri Apr 10, 2009 12:53 am
 
Forum: Discussion
Topic: Cobra March 2009 Update
Replies: 0
Views: 3729

Re: Mixins

Bug with mixins and props mixin TimeStamp #pro stamp from var as DateTime? # same error as below var _stamp = DateTime.now pro stamp from _stamp class MyThing adds TimeStamp def init pass def main is shared t = MyThing() now = ...
by hopscc
Mon Mar 09, 2009 10:24 pm
 
Forum: Discussion
Topic: Mixins
Replies: 12
Views: 8549

Cobra February 2009 Update

... Misc -- Added or improved 3 error messages and warnings. -- Fixed 3 bugs. Docs, Samples and How-To's -- New or updated wiki pages: ---- MixIn ---- StandardLibraryExtensionMethods ---- TypesOverview ------ StreamType ------ VariType ------ NilableType ------ DynamicType The next update ...
by Charles
Sun Mar 08, 2009 11:03 am
 
Forum: News Announcements
Topic: Cobra February 2009 Update
Replies: 0
Views: 14093

Cobra February 2009 Update

... Misc -- Added or improved 3 error messages and warnings. -- Fixed 3 bugs. Docs, Samples and How-To's -- New or updated wiki pages: ---- MixIn ---- StandardLibraryExtensionMethods ---- TypesOverview ------ StreamType ------ VariType ------ NilableType ------ DynamicType The next update ...
by Charles
Sun Mar 08, 2009 11:01 am
 
Forum: Discussion
Topic: Cobra February 2009 Update
Replies: 0
Views: 4272

Re: Mixins

... I'm also wondering if it could be solved by having the mixed in methods call out to a utility class, generated by the compiler, that contains the mixin methods: class Foo adds Bar # generated by compiler: def barMethod BarMembers.barMethod(this) # call out to generated class holding the ...
by Charles
Wed Mar 04, 2009 1:44 pm
 
Forum: Discussion
Topic: Mixins
Replies: 12
Views: 8549

Re: Mixins

Thanks, it had not occurred to me that MI is impossible to implement if .NET / JVM compatibility is to be kept. Now I see clearly that mixins are a way to "fake" MI when the backend does not support it. I had not thought about the "injection" part either. I understand ...
by jonathandavid
Wed Mar 04, 2009 12:38 pm
 
Forum: Discussion
Topic: Mixins
Replies: 12
Views: 8549
PreviousNext

Return to advanced search

cron