August 27, 2015 Re: Arrays of structs | ||||
---|---|---|---|---|
| ||||
Posted in reply to BBasile | On Thursday 27 August 2015 14:35, BBasile wrote:
> Anyway. I cheat a bit with attributes but as long as it's only for me...I know this kinds of functions are not phobos-level.
Sure, as long as you're cautious and regard those functions as unsafe, you may be fine. You still risk accidentally writing unsafe code that's marked @safe, but that's up to you.
But when you show such code in the learn group, I think it's important to point out that this usage of @trusted is wrong. If only to warn newbies about it.
|
August 27, 2015 Re: Arrays of structs | ||||
---|---|---|---|---|
| ||||
Posted in reply to anonymous | On Thursday, 27 August 2015 at 12:56:26 UTC, anonymous wrote:
> On Thursday 27 August 2015 14:35, BBasile wrote:
>
>> Anyway. I cheat a bit with attributes but as long as it's only for me...I know this kinds of functions are not phobos-level.
>
> Sure, as long as you're cautious and regard those functions as unsafe, you may be fine. You still risk accidentally writing unsafe code that's marked @safe, but that's up to you.
>
> But when you show such code in the learn group, I think it's important to point out that this usage of @trusted is wrong. If only to warn newbies about it.
:handshake:
|
Copyright © 1999-2021 by the D Language Foundation