Loading ...
Sorry, an error occurred while loading the content.

9312Re: "ocaml_beginners"::[] getting rid of a global variable

Expand Messages
  • Martin DeMello
    Feb 3, 2008
      On Feb 3, 2008 4:13 AM, Jon Harrop <jon@...> wrote:
      > 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.

      How does that work with code that has side effects? Would appreciate a
      pointer to the relevant section of the docs - I didn't know where to

    • Show all 12 messages in this topic