RCArray is unsafe
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Tue Mar 3 11:37:49 PST 2015
On 3/3/2015 9:19 AM, "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm at gmx.net>" wrote:
> Therefore, your reply isn't really valid. In Rust, it is an escape hatch from a
> fundamentally safe type system, whereas in D it would be a necessary convention
> to make usage of RC safe.
My understanding of Rust is that many library types rely on unsafe code under
the hood to make them work. Rust does have an 'unsafe' mechanism to support this.
But that's ok. The idea is it must be possible to create a type with a safe
interface. The internals don't have to be safe.
More information about the Digitalmars-d