borrowed pointers vs ref

Paulo Pinto via Digitalmars-d digitalmars-d at puremagic.com
Mon May 12 23:16:11 PDT 2014


On Tuesday, 13 May 2014 at 04:46:41 UTC, Russel Winder via
Digitalmars-d wrote:
> On Tue, 2014-05-13 at 04:07 +0000, logicchains via 
> Digitalmars-d wrote:
> […]
>> This sounds a bit like an 'issue' of sorts that Rust has with 
>> borrowed pointers, where certain types of datastructures 
>> cannot be written without resorting to the 'unsafe' parts of 
>> the language. The solution they've adopted is having such code 
>> written in libraries so that the user doesn't have to mess 
>> around with 'unsafe'.
>
> Probably re-finding many of the things people have to use
> sun.misc.Unsafe for on the JVM.

Which is why the Java designers are looking on how to make Unsafe
an official package as of Java 9.

And did the survey a few months ago, about how Unsafe was being
used in major Java projects.

--
Paulo


More information about the Digitalmars-d mailing list