GC has a "barbaric" destroyng model, I think

Foo via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Feb 13 01:11:25 PST 2015


On Friday, 13 February 2015 at 08:00:43 UTC, Kagamin wrote:
> On Thursday, 12 February 2015 at 17:29:34 UTC, Foo wrote:
>> And since today it is @safe wherever possible.
>
> Well, you marked functions @trusted rather indiscriminately :)
> Such approach doesn't really improve safety, and the code could 
> work as well being @system. It's not like @system is inherently 
> broken or something like that.

Since with @safemarked functions are checked by the compiler it 
is advisable to mark functions with @safe.
And I wouldn't say indiscriminately. Every function I marked with 
@trusted was checked by me so far.
Of course I'm rather new to D, so I could be wrong. But since my 
other comrades aren't willing to use D, this code will rot on 
Github if nobody else will use it.


More information about the Digitalmars-d-learn mailing list