Blog post: What D got wrong
Steven Schveighoffer
schveiguy at gmail.com
Tue Dec 18 15:00:48 UTC 2018
On 12/17/18 4:42 AM, Dukc wrote:
> On Monday, 17 December 2018 at 09:41:01 UTC, Dukc wrote:
>> On Saturday, 15 December 2018 at 19:53:06 UTC, Atila Neves wrote:
>>
>>> @safe and pure though...
>>
>> Why @safe? Can't you just write "@safe:" on top and switch to
>> @system/@trusted as needed?
>
> Argh, I forgot that you are not supposed to @safe templates away.
You can apply @safe to anything. It's @trusted you have to be careful with.
Of course, it probably won't work for many templates.
-Steve
More information about the Digitalmars-d-announce
mailing list