Objects in a Templated World

Paulo Pinto pjmlp at progtools.org
Tue Oct 30 14:01:48 PDT 2012


On Tuesday, 30 October 2012 at 19:48:30 UTC, Jesse Phillips wrote:
> On Tuesday, 30 October 2012 at 18:59:24 UTC, Jesse Phillips 
> wrote:
>> On Tuesday, 30 October 2012 at 18:27:39 UTC, Alex Rønne 
>> Petersen wrote:
>>> On 30-10-2012 19:23, Jesse Phillips wrote:
>>> I think you should cover C#. It allows virtual generic 
>>> methods in its implementation of reified generics by relying 
>>> on the JIT.
>>
>> Sounds like a good idea, I'll have to dig into it since at 
>> this time I don't really understand what that means it is 
>> doing.
>
> Ok, didn't realize C# allowed free form generic methods. Good 
> to know.
>
> http://stackoverflow.com/questions/6573557/clr-how-virtual-generic-method-call-is-implemented
>
> No time to update the article yet.

Probably you should also have a look how Eiffel, Modula-3 and Ada 
implement generics.

They are quite similar to C++ and D, with the constraint that the 
programmer has to explicitly instantiate which types are used.

--
Paulo


More information about the Digitalmars-d-announce mailing list