D language and .NET platform

Simen Kjaeraas simen.kjaras at gmail.com
Sun Jul 29 09:51:36 PDT 2012


On Sun, 29 Jul 2012 18:32:08 +0200, Alex Rønne Petersen <alex at lycus.org>  
wrote:

> On 29-07-2012 17:36, bearophile wrote:
>> Alex Rønne Petersen:
>>
>>> .NET is too limited to represent the language,
>>
>> Can you tell us why?
>>
>> Bye,
>> bearophile
>
> Array slices. The .NET type system has no way to represent them because  
> it's designed for precise GC, and array slices allow interior pointers  
> in the heap (as opposed to the stack when passing a field of an object  
> by reference to a function, or whatever).

So one couldn't simply use a two-level system, with a slice referencing an
array, and holding an offset and a length?

-- 
Simen


More information about the Digitalmars-d mailing list