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

Re: "ocaml_beginners"::[] accessing record fields from other modules without ope

Expand Messages
  • andrekuehne
    ... Yes this works. Thanks Andre
    Message 1 of 3 , Sep 9, 2007
    • 0 Attachment
      --- In ocaml_beginners@yahoogroups.com, Vincent Aravantinos
      <vincent.aravantinos@...> wrote:
      >
      >
      > Le 9 sept. 07 à 13:10, Andre Kuehne a écrit :
      >
      > > Hello
      > >
      > > Compiling this code:
      > >
      > > ...
      > > let status = Graphics.wait_next_event [Graphics.Poll] in
      > > if status.button or status.keypressed then exit 0;
      > > ...
      > >
      > > I get the following error:
      > >
      > > Unbound record field label button
      > >
      > > I get no error if i put a
      > >
      > > open Graphics
      > >
      > > at the top of the file, but how can i access the record field
      > > without opening Graphics?
      >
      > What about :
      >
      > status.Graphics.button
      >
      > ?
      >

      Yes this works.

      Thanks
      Andre
    Your message has been successfully submitted and would be delivered to recipients shortly.