ImportC and nothrow/@nogc?

Manu turkeyman at gmail.com
Sun Aug 25 02:04:22 UTC 2024


On Sun, 25 Aug 2024 at 10:56, Timon Gehr via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:

> On 8/24/24 19:10, Manu wrote:
> >
> >     Some years back, I got into a terrific disagreement with everyone
> >     else in the D
> >     community when I wanted C declarations to default to @trusted :-/
> >
> >
> > I might have been inclined to back you on that one...
>
> Well, you'd have been wrong. Just remove @safe at that point.
>

Well I think the proper solution is to allow the user to declare unsafe
(ie, @trusted) code blocks, and make unsafe calls from within those blocks,
which would include calls to C code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20240825/296fc033/attachment.htm>


More information about the Digitalmars-d mailing list