On 2013-05-18 01:10, Igor Stepanov wrote:
module fmod;

public immutable int[] fable = [1,2,3];


module mod;

//import fmod;

int foo(int i)
{
        pragma(mangle, "_D4fmod5fableyAi") extern immutable int[] fable;
        return fable[i];
}

Or with extern (C) to avoid the pragma.

--
/Jacob Carlborg

Reply via email to