9312Re: "ocaml_beginners":: getting rid of a global variable
- Feb 3, 2008On Feb 3, 2008 4:13 AM, Jon Harrop <jon@...> wrote:
>How does that work with code that has side effects? Would appreciate a
> On Saturday 02 February 2008 20:52:57 Martin DeMello wrote:
> > The exact problem is I'd
> > like dawg to be defined as a global variable in main.ml but be visible
> > from functions in another file, though if there's a better way to do
> > things I'd love to hear that too.
> Yes: take "dawg" out of the "main" file and put it in its own file that
> everything using it can depend upon.
pointer to the relevant section of the docs - I didn't know where to
- << Previous post in topic Next post in topic >>