Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] getting the value of the first expression
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-10-18 (13:02)
From: proff@i...
Subject: Re: [Caml-list] getting the value of the first expression
> emit_parm "ldc" offset;
> emit "ind"
> The value of this whole expression is the value of the emit application.
>  What if I want the value of the entire expression to be the value of
> the emit_parm application?  I can't interchange the order of these two

let x = emit_parm "ldc" offset
  emit "ind"; x

 Julian Assange        |If you want to build a ship, don't drum up people
                       |together to collect wood or assign them tasks and          |work, but rather teach them to long for the endless  |immensity of the sea. -- Antoine de Saint Exupery
Bug reports:  FAQ:
To unsubscribe, mail  Archives: