On Mon, Dec 27, 2021 at 12:58 PM Peter W <peter.w456...@gmail.com> wrote:
>
> We will not see static reflection in golang2, right?

I'm not sure what you mean by static reflection, but I'm not aware of
any current plans to add any sort of reflection.

> Anything else blocks the possibility of unloading implementation ?

In Go it's trivial to start a background goroutine that doesn't stop.
If you unload a shared library that has a background goroutine, the
program will crash.  I don't know of any reasonable way to work around
that.

Ian


> On Monday, December 27, 2021 at 2:17:42 AM UTC+2 Ian Lance Taylor wrote:
>>
>> On Sun, Dec 26, 2021 at 3:45 PM Peter W <peter....@gmail.com> wrote:
>> >
>> > I am trying to load, call and unload multiple go libs which are built with 
>> > -buildmode c-shared in a c problem, it’s doable on windows, Linux and 
>> > macOS ? Also I see -buildmode shared removal was rejected, what about 
>> > -buildmode archive?
>>
>> You can't safely unload a Go DLL built with -buildmode=c-shared. That
>> is not supported at all. Sorry.
>>
>> Loading multiple Go DLLs built with -buildmode=c-shared ought to work
>> on ELF based systems like Linux. I don't know whether it will work on
>> Windows or macOS.
>>
>> Nothing is happening to -buildmode=archive. Or, for that matter,
>> -buildmode=c-archive. It's fine to link against as many
>> -buildmode=c-archive archives as you like.
>>
>> Ian
>
> --
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/0f30e624-ea1a-4482-ab8b-d2566b9023a5n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcXxUUOyhTwEhzH3xXTAApBnHbSuum7bcV12ToxfomqF1w%40mail.gmail.com.

Reply via email to