Maybe D is right about GC after all !
codephantom
me at noyb.com
Tue Dec 26 08:47:14 UTC 2017
On Tuesday, 26 December 2017 at 07:33:18 UTC, Mark wrote:
>
> Then whoever is using your code (you?) will find that out when
> they call your functions from a @safe function.
And if they forget to annotate their so called 'safe' function
with @safe...what happens then?
Comparing the 'memory safety' of languages seems a little
pointless to me..because any programmer can stuff up in any
language.
As it stands, D does not nullify the truth of that statement.
Which makes me wonder why it is, that @safe is not default in D,
and Phobos for that matter?
If it were, then that would be a more useful thing to promote D,
because, as it currently stands, if I forget to annotate my
function with @safe, then I'm in the same world of forgetting to
do something in C..or C++.. or whatever...(like checking whether
I'm referencing a valid memory address).
More information about the Digitalmars-d
mailing list