4 ms·
I would say it depends. Maybe Walter will chime in, but from what I can tell it is fully possible to use raw pointers (-betterC) and step into unsafe space, but
by vips7L 7y ago
I would say it depends. Maybe Walter will chime in, but from what I can tell it is fully possible to use raw pointers (-betterC) and step into unsafe space, but if you're using the full runtime it should be as safe as go, java, etc.
- mhh__ 7y ago-betterC removes the druntime features, but pointer safety is gained with the -dip1000 flag (with @safe) regardless of whether you use betterC or not. @safe will also stop you doing obviously unsafe pointer arithmetic unless you abstract it into a @trusted function.