destroy and @safe
H. S. Teoh
hsteoh at qfbox.info
Tue Jun 21 18:59:38 UTC 2022
On Tue, Jun 21, 2022 at 06:28:14PM +0000, Paul Backus via Digitalmars-d-learn wrote:
> On Tuesday, 21 June 2022 at 17:33:46 UTC, H. S. Teoh wrote:
> >
> > Does the language allow you to declare a @system delegate inside
> > @safe code?
>
> Yes. This compiles:
>
> void main() @safe
> {
> void delegate() @system dg = () @system { /* do scary stuff */ };
> }
Hmph. That does put a damper on my idea. :-(
T
--
One reason that few people are aware there are programs running the internet is that they never crash in any significant way: the free software underlying the internet is reliable to the point of invisibility. -- Glyn Moody, from the article "Giving it all away"
More information about the Digitalmars-d-learn
mailing list