Call to Action: making Phobos @safe
Lodovico Giaretta via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jun 29 10:33:18 PDT 2016
On Wednesday, 29 June 2016 at 17:25:31 UTC, Atila Neves wrote:
> On Saturday, 25 June 2016 at 22:56:12 UTC, Walter Bright wrote:
>> On 6/25/2016 3:44 PM, Walter Bright wrote:
>>> 4. Add @safe to the unittest
>>
>> A unittest that is deliberately unsafe should be annotated
>> with @system. Meaning that any un-annotated unittest needs
>> corrective action one way or the other.
>
> What about existing tests that are marked @trusted?
>
> Atila
Maybe I'm missing something, but...
What's the purpose of a @trusted unittest? If it's safe, mark it
@safe. If it's not, you gain nothing from marking it @trusted,
given that it will not be called by @safe code (it will not be
called in general). @trusting a top-level function is useless
IMHO...
More information about the Digitalmars-d
mailing list