On Tue, Aug 05, 2014 at 11:27:18AM +0530, Swapnil Mahajan wrote:
> I am using multiple modules while compiling using CIL. I want to pass a
> string to all the modules as a parameter. Is there any way of passing it
> across the modules instead of explicitly passing it to all the modules ?

Untested: declare the option in your first module, make it set a string,
and then use it from the other modules. For instance:

ModuleA.ml
  let myparam = ref ""
  let feature = (* ... set myparam in the command-line option here *)

ModuleB.ml
  let myparam = ModuleA.myparam

Best,
-- 
Gabriel

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users

Reply via email to