Kevin Pratt
2010-Jul-22 12:28 UTC
[Ironruby-core] Accessing classes that are inherited from generics.
Hello, I have a few classes in a namespace that follow this form. public class ExampleName : BaseClass<ExampleName> { } Any class that follows this structure does not get pulled through when I require my DLL. Does anyone have any ideas? I''m also using the Castle ActiveRecord project and the classes that inherit from ActiveRecordBase<> also do not come through. Thank you. Kevin. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100722/5ce8f85b/attachment.html>
Tomas Matousek
2010-Jul-22 16:01 UTC
[Ironruby-core] Accessing classes that are inherited from generics.
Can you send a small repro of what doesn''t work (both C# and Ruby code)? It works for me. test.cs: public class D<T> { } public class E { } public class C : D<E> { } --->>> require ''test.dll''=> true>>> C.new=> C Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Kevin Pratt Sent: Thursday, July 22, 2010 5:29 AM To: ironruby-core Subject: [Ironruby-core] Accessing classes that are inherited from generics. Hello, I have a few classes in a namespace that follow this form. public class ExampleName : BaseClass<ExampleName> { } Any class that follows this structure does not get pulled through when I require my DLL. Does anyone have any ideas? I''m also using the Castle ActiveRecord project and the classes that inherit from ActiveRecordBase<> also do not come through. Thank you. Kevin. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100722/296aa5c1/attachment.html>
Charles Strahan
2010-Jul-22 22:21 UTC
[Ironruby-core] Accessing classes that are inherited from generics.
I haven''t tried it out, but perhaps Kevin was referring to this: public class D<T> { } public class C : D<C> { } as opposed to what you tried: public class D<T> { } public class E { } public class C : D<E> { } The distinction being that the subclasses type also happens to be the superclass''s type arg. Sorry for being too lazy to try it out... maybe later :) -Charles On Thu, Jul 22, 2010 at 11:01 AM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote:> Can you send a small repro of what doesn?t work (both C# and Ruby code)? > > It works for me. > > > > test.cs: > > public class D<T> { > > } > > > > public class E { > > } > > > > public class C : D<E> { > > } > > > > --- > > >>> require ?test.dll? > > => true > > >>> C.new > > => C > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Kevin Pratt > *Sent:* Thursday, July 22, 2010 5:29 AM > *To:* ironruby-core > *Subject:* [Ironruby-core] Accessing classes that are inherited from > generics. > > > > Hello, > > > > I have a few classes in a namespace that follow this form. > > > > public class ExampleName : BaseClass<ExampleName> > > { > > } > > > > Any class that follows this structure does not get pulled through when I > require my DLL. > > > > Does anyone have any ideas? > > > > I''m also using the Castle ActiveRecord project and the classes > that inherit from ActiveRecordBase<> also do not come through. > > > > Thank you. > > Kevin. > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100722/3cd5de23/attachment.html>
Tomas Matousek
2010-Jul-22 23:19 UTC
[Ironruby-core] Accessing classes that are inherited from generics.
That one works as well:>>> C.ancestors=> [C, D[C], D[T], Object, Kernel] Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Charles Strahan Sent: Thursday, July 22, 2010 3:21 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Accessing classes that are inherited from generics. I haven''t tried it out, but perhaps Kevin was referring to this: public class D<T> { } public class C : D<C> { } as opposed to what you tried: public class D<T> { } public class E { } public class C : D<E> { } The distinction being that the subclasses type also happens to be the superclass''s type arg. Sorry for being too lazy to try it out... maybe later :) -Charles On Thu, Jul 22, 2010 at 11:01 AM, Tomas Matousek <Tomas.Matousek at microsoft.com<mailto:Tomas.Matousek at microsoft.com>> wrote: Can you send a small repro of what doesn''t work (both C# and Ruby code)? It works for me. test.cs: public class D<T> { } public class E { } public class C : D<E> { } --->>> require ''test.dll''=> true>>> C.new=> C Tomas From: ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org> [mailto:ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org>] On Behalf Of Kevin Pratt Sent: Thursday, July 22, 2010 5:29 AM To: ironruby-core Subject: [Ironruby-core] Accessing classes that are inherited from generics. Hello, I have a few classes in a namespace that follow this form. public class ExampleName : BaseClass<ExampleName> { } Any class that follows this structure does not get pulled through when I require my DLL. Does anyone have any ideas? I''m also using the Castle ActiveRecord project and the classes that inherit from ActiveRecordBase<> also do not come through. Thank you. Kevin. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100722/7c375051/attachment.html>
Kevin Pratt
2010-Jul-28 14:34 UTC
[Ironruby-core] Accessing classes that are inherited from generics.
I''ll put a repo together asap. I was referring to the second setup. class A : ActiveRecorBase<A> {} On Fri, Jul 23, 2010 at 2:19 AM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote:> That one works as well: > > > > >>> C.ancestors > > => [C, D[C], D[T], Object, Kernel] > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Charles Strahan > *Sent:* Thursday, July 22, 2010 3:21 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Accessing classes that are inherited from > generics. > > > > I haven''t tried it out, but perhaps Kevin was referring to this: > > public class D<T> { > > } > > public class C : D<C> { > > } > > > as opposed to what you tried: > > public class D<T> { > > } > > > > public class E { > > } > > > > public class C : D<E> { > > } > > > The distinction being that the subclasses type also happens to be the > superclass''s type arg. > > Sorry for being too lazy to try it out... maybe later :) > > -Charles > > On Thu, Jul 22, 2010 at 11:01 AM, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > > Can you send a small repro of what doesn?t work (both C# and Ruby code)? > > It works for me. > > > > test.cs: > > public class D<T> { > > } > > > > public class E { > > } > > > > public class C : D<E> { > > } > > > > --- > > >>> require ?test.dll? > > => true > > >>> C.new > > => C > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Kevin Pratt > *Sent:* Thursday, July 22, 2010 5:29 AM > *To:* ironruby-core > *Subject:* [Ironruby-core] Accessing classes that are inherited from > generics. > > > > Hello, > > > > I have a few classes in a namespace that follow this form. > > > > public class ExampleName : BaseClass<ExampleName> > > { > > } > > > > Any class that follows this structure does not get pulled through when I > require my DLL. > > > > Does anyone have any ideas? > > > > I''m also using the Castle ActiveRecord project and the classes > that inherit from ActiveRecordBase<> also do not come through. > > > > Thank you. > > Kevin. > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100728/4e6327cf/attachment.html>
Tomas Matousek
2010-Jul-28 15:29 UTC
[Ironruby-core] Accessing classes that are inherited from generics.
Is the class internal? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Kevin Pratt Sent: Wednesday, July 28, 2010 7:35 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Accessing classes that are inherited from generics. I''ll put a repo together asap. I was referring to the second setup. class A : ActiveRecorBase<A> {} On Fri, Jul 23, 2010 at 2:19 AM, Tomas Matousek <Tomas.Matousek at microsoft.com<mailto:Tomas.Matousek at microsoft.com>> wrote: That one works as well:>>> C.ancestors=> [C, D[C], D[T], Object, Kernel] Tomas From: ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org> [mailto:ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org>] On Behalf Of Charles Strahan Sent: Thursday, July 22, 2010 3:21 PM To: ironruby-core at rubyforge.org<mailto:ironruby-core at rubyforge.org> Subject: Re: [Ironruby-core] Accessing classes that are inherited from generics. I haven''t tried it out, but perhaps Kevin was referring to this: public class D<T> { } public class C : D<C> { } as opposed to what you tried: public class D<T> { } public class E { } public class C : D<E> { } The distinction being that the subclasses type also happens to be the superclass''s type arg. Sorry for being too lazy to try it out... maybe later :) -Charles On Thu, Jul 22, 2010 at 11:01 AM, Tomas Matousek <Tomas.Matousek at microsoft.com<mailto:Tomas.Matousek at microsoft.com>> wrote: Can you send a small repro of what doesn''t work (both C# and Ruby code)? It works for me. test.cs: public class D<T> { } public class E { } public class C : D<E> { } --->>> require ''test.dll''=> true>>> C.new=> C Tomas From: ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org> [mailto:ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org>] On Behalf Of Kevin Pratt Sent: Thursday, July 22, 2010 5:29 AM To: ironruby-core Subject: [Ironruby-core] Accessing classes that are inherited from generics. Hello, I have a few classes in a namespace that follow this form. public class ExampleName : BaseClass<ExampleName> { } Any class that follows this structure does not get pulled through when I require my DLL. Does anyone have any ideas? I''m also using the Castle ActiveRecord project and the classes that inherit from ActiveRecordBase<> also do not come through. Thank you. Kevin. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100728/9acd5fb3/attachment-0001.html>