From: chet@watson.ibm.com
To: Hendrik Tews <tews@tcs.inf.tu-dresden.de>
Cc: caml-list@inria.fr
Subject: Re: Efficency in OCaml
Date: Fri, 10 Sep 1999 15:03:41 -0400 [thread overview]
Message-ID: <199909101903.PAA01514@bismarck.chet.org> (raw)
In-Reply-To: Your message of "Fri, 10 Sep 1999 17:19:39 +0200." <199909101519.RAA18663@ithif20.inf.tu-dresden.de>
Take a small program, e.g.
================================================================
class oa n =
object
val mutable a = n
method get () = a
method set a' = a <- a'
method print_a () = (Printf.printf "A: %d\n" a; flush stdout)
end
;;
print_string "foo\n";;
let ai = new oa 37;;
ai#print_a();;
================================================================
and run
% ocamlc -c -drawlambda o1.ml
on it. Doing so on "oo.ml" (after having compiled "oo.mli" in the
same directory!) will also help illuminate the situation.
--chet--
next prev parent reply other threads:[~1999-09-17 11:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <7qj9lv$aa9$1@goldenapple.srv.cs.cmu.edu>
1999-09-01 18:40 ` chet
1999-09-01 23:09 ` Jerome Vouillon
1999-09-04 14:26 ` Nicolas Ollinger
1999-09-10 13:14 ` Jerome Vouillon
1999-09-10 15:19 ` Hendrik Tews
1999-09-10 19:03 ` chet [this message]
1999-09-15 12:39 ` Jerome Vouillon
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=199909101903.PAA01514@bismarck.chet.org \
--to=chet@watson.ibm.com \
--cc=caml-list@inria.fr \
--cc=tews@tcs.inf.tu-dresden.de \
/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