List Info

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




Re: "ocaml_beginners"::[] accessing record fields from other modules without ope
country flaguser name
United States
2007-09-09 08:10:39

--- In ocaml_beginners%40yahoogroups.com">ocaml_beginnersyahoogroups.com, Vincent Aravantinos
<vincent.aravantinos...> wrote:
&gt;
>
> Le 9 sept. 07 à 13:10, Andre Kuehne a écrit :
>
> > Hello
&gt; >
>; > Compiling this code:
&gt; >
>; > ...
> > let status = Graphics.wait_next_event [Graphics.Poll] in
> > if status.button or status.keypressed then exit 0;
> > ...
> >
>; > I get the following error:
&gt; >
>; > Unbound record field label button
&gt; >
>; > 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

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )