Forums
Search found 35 matches: mixin
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 ...
- Sun Nov 01, 2009 7:48 am
- Forum: Discussion
- Topic: generic mixin
- Replies: 2
- Views: 11694
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 ...
- Sun Nov 01, 2009 7:45 am
- Forum: Discussion
- Topic: generic method in mixin
- Replies: 0
- Views: 8467
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" ...
- Sun Nov 01, 2009 7:41 am
- Forum: Discussion
- Topic: support for namespace enclosed mixin?
- Replies: 1
- Views: 8063
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 ...
- Fri Apr 10, 2009 12:56 am
- Forum: News Announcements
- Topic: Cobra March 2009 Update
- Replies: 0
- Views: 85883
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 ...
- Fri Apr 10, 2009 12:53 am
- Forum: Discussion
- Topic: Cobra March 2009 Update
- Replies: 0
- Views: 12025
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 = ...
- Mon Mar 09, 2009 10:24 pm
- Forum: Discussion
- Topic: Mixins
- Replies: 12
- Views: 49599
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 ...
- Sun Mar 08, 2009 11:03 am
- Forum: News Announcements
- Topic: Cobra February 2009 Update
- Replies: 0
- Views: 65881
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 ...
- Sun Mar 08, 2009 11:01 am
- Forum: Discussion
- Topic: Cobra February 2009 Update
- Replies: 0
- Views: 12901
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 ...
- Wed Mar 04, 2009 1:44 pm
- Forum: Discussion
- Topic: Mixins
- Replies: 12
- Views: 49599
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 ...
- Wed Mar 04, 2009 12:38 pm
- Forum: Discussion
- Topic: Mixins
- Replies: 12
- Views: 49599
- Search found 35 matches • Page 3 of 4 • 1, 2, 3, 4