More on Rust language

Caligo via Digitalmars-d digitalmars-d at puremagic.com
Thu May 8 21:30:55 PDT 2014


On Thu, Nov 3, 2011 at 10:43 PM, Walter Bright
<newshound2 at digitalmars.com>wrote:

>
>  How do you implement a moving GC in D if D has
>> raw pointers?
>>
>
> It can be done if the D compiler emits full runtime type info. It's a
> solved problem with GCs.
>
>
>  D semantics doesn't allow the GC to automatically modify those
>> pointers when the GC moves the data.
>>
>
> Yes, it does. I've implemented a moving collector before designing D, and
> I carefully defined the semantics so that it could be done for D.
>
> Besides, having two pointer types in D would be disastrously complex.
> C++/CLI does, and C++/CLI is a failure in the marketplace. (I've dealt with
> multiple pointer types from the DOS daze, and believe me it is a BAD BAD
> BAD idea.)
>

 Given the recent discussion on radical changes to GC and dtors, could
someone please explain why having multiple pointer types is a bad idea?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140508/ba22a626/attachment.html>


More information about the Digitalmars-d mailing list