Both safe and wrong?
XavierAP
n3minis-git at yahoo.es
Tue Feb 12 13:26:22 UTC 2019
On Tuesday, 12 February 2019 at 12:49:45 UTC, XavierAP wrote:
>
> - When compiling new code, globals in this code are subject to
> new restrictions; so they are flagged @safe, @trusted or
> @system explicitly;
Sorry instead of "explicitly" I should have said according to the
same rules as functions. So if they're not found in a @safe or
@trusted region, they will be flagged as @system.
The difference is that globals from binaries would be specially
considered as "@trusted with warning" until re-compiled
(regardless of what region they were compiled from originally,
which cannot likely be known).
More information about the Digitalmars-d
mailing list