generics support

Dec 13, 2009 at 12:04 AM

Hi,

First of all, D .NET. is a very interesting piece of code, thank you! :)

I'm quite new to .NET (and still not a D expert), but I tried to write a small program that extracts D imports from assemblies using reflection (just for fun), and I have some trouble with generics. Does D .NET support them, and, if it does, in what way? I understand that D has much more powerful templates, but on the other hand there may be a lot of existing .NET code that uses generics.

 

Coordinator
Dec 27, 2009 at 8:59 PM

As far as I know importing generics should work. Tim Matthews (the other developer on this project) has been working on an import generator tool, he will be happy to help you out. The code for the import generator is not checked in here because the D compiler front end (where the import mechanisms are implemented) has been in a state of flux for quite a while, and I found it very difficult to keep our side of the code stable.

Tim has started his own fork of this project where he can experiment at will, contact him through this project or send me a private mail and I will give you his contact info.