suggestion add extern(GO)
d007
d007 at gmail.com
Wed Jun 7 05:03:07 UTC 2023
On Tuesday, 6 June 2023 at 16:54:07 UTC, Johan wrote:
> The way I understand the article, nothing new is needed on the
> D side: you use extern(C) (and -betterC if you don't want to
> link with druntime).
>
> -Johan
you are right, any extern(C) from static or dynamic library
should be able to link into golang.
What I like to do is like extern(C++) or extern(Objc), add
extern(GO) support, generate function is able to call from go
without extra trampoline. (generate syso file to link with go)
More information about the Digitalmars-d
mailing list