Hello. How to use @safe when a C library integration needed?
Everything need a system function...
Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
January 23, 2023 How to use @safe when a C library integration needed | ||||
---|---|---|---|---|
| ||||
Hello. How to use @safe when a C library integration needed? Everything need a system function... |
January 23, 2023 Re: How to use @safe when a C library integration needed | ||||
---|---|---|---|---|
| ||||
Posted in reply to Leonardo | On Monday, 23 January 2023 at 16:36:21 UTC, Leonardo wrote: >Hello. How to use @safe when a C library integration needed? Everything need a system function...
[*] in fact, this is a lambda function that is directly called, because real trusted blocks are not allowed (yet). |
April 14, 2023 Re: How to use @safe when a C library integration needed | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dom DiSc | On Monday, 23 January 2023 at 16:46:48 UTC, Dom DiSc wrote: >On Monday, 23 January 2023 at 16:36:21 UTC, Leonardo wrote: >Hello. How to use @safe when a C library integration needed? Everything need a system function...
[*] in fact, this is a lambda function that is directly called, because real trusted blocks are not allowed (yet). Thanks. But this works only to one function per time. Is there any way to do this to an imported library at all? something like |
April 14, 2023 Re: How to use @safe when a C library integration needed | ||||
---|---|---|---|---|
| ||||
Posted in reply to Leonardo | On Friday, 14 April 2023 at 14:10:41 UTC, Leonardo wrote: >Thanks. But this works only to one function per time. Is there any way to do this to an imported library at all? something like No, there isn't. C is an unsafe language, so if you want to call C from If you are calling the same C function many times from
|
April 15, 2023 Re: How to use @safe when a C library integration needed | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul Backus | On Friday, 14 April 2023 at 16:19:22 UTC, Paul Backus wrote: >On Friday, 14 April 2023 at 14:10:41 UTC, Leonardo wrote: >[...] No, there isn't. C is an unsafe language, so if you want to call C from [...] Thanks for your response. |