C, string intern pool and DLLs?

62 Views Asked by At

Many scripting languages have some form of C extensions.

How do they resolve the problem of reference equality when interned strings / symbols can be either allocated from the main process or from the dll?

Is there any form of initializing a String Pool in the main process, and then use it on the loaded dll as if it were already initialized without passing any pointers to an instance of it?

In my case, my String Pool is global and its header file only exposes an initialize, deinitialize and intern functions.

0

There are 0 best solutions below