shared array?
Laeeth Isharc via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Sep 12 15:41:23 PDT 2015
On Saturday, 12 September 2015 at 13:42:44 UTC, Prudence wrote:
> Saying that it doesn't use it most of the time is not an
> answer/solution. Using it at all is a problem because one
> doesn't know when and where. I realize there is a switch
> now(-vgc), and maybe that is the solution, but you say "well,
> phobos only uses 0.01% on the GC", yet since you either don't,
> can't, or won't know where that is, then it might as well be
> 100% if you would like to potentially get off the GC one day.
"you either don't, can't, or won't know where that is"
just check the signature, no ? eg
http://dlang.org/phobos/std_string.html
pure nothrow @nogc @system inout(char)[] fromStringz(inout(char)*
cString);
^^^^^
More information about the Digitalmars-d-learn
mailing list