D language and .NET platform

Alex Rønne Petersen alex at lycus.org
Sun Jul 29 10:32:00 PDT 2012


On 29-07-2012 18:51, Simen Kjaeraas wrote:
> 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?
>

That could work, but it wouldn't be compatible with D as it is now.

-- 
Alex Rønne Petersen
alex at lycus.org
http://lycus.org


More information about the Digitalmars-d mailing list