From: Bruce Hoult <bruce@hoult.org>
To: "Rafael 'Dido' Sevilla" <sevillar@team.ph.inter.net>,
Caml List <caml-list@pauillac.inria.fr>
Subject: Re: [Caml-list] getting the value of the first expression
Date: Thu, 18 Oct 2001 23:23:25 +1300 [thread overview]
Message-ID: <a05101007b7f45d820aa1@[192.168.0.2]> (raw)
In-Reply-To: <20011018174410.A10054@team.ph.inter.net>
At 5:44 PM +0800 18/10/01, Rafael 'Dido' Sevilla wrote:
>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
>expressions obviously because the two function applications have side
>effects
You just need a variable binding:
let result = emit_parm "ldc" offset in
emit "ind";
result
-- Bruce
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
next prev parent reply other threads:[~2001-10-18 10:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-18 9:44 Rafael 'Dido' Sevilla
2001-10-18 10:00 ` Markus Mottl
2001-10-18 10:05 ` Dmitry Lomov
2001-10-18 10:23 ` Bruce Hoult [this message]
2001-10-18 12:18 ` Julian Assange
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='a05101007b7f45d820aa1@[192.168.0.2]' \
--to=bruce@hoult.org \
--cc=caml-list@pauillac.inria.fr \
--cc=sevillar@team.ph.inter.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox