From: Thorsten Ohl <ohl@crunch.ikp.physik.th-darmstadt.de>
To: caml-list@pauillac.inria.fr
Subject: Re: Class variables in O'Caml??? + questions
Date: Fri, 10 May 1996 17:13:57 +0200 [thread overview]
Message-ID: <9605101513.AA16888@crunch> (raw)
In-Reply-To: <9605101257.AA06291@gr6.u-strasbg.fr>
>>>>> "Christian" == Christian Boos <boos@gr6.u-strasbg.fr> writes:
Christian> IMO, the use of references is not so unnatural. Together
Christian> with structs, it provides a clean way to encapsulate global
Christian> state and actions for classes.
Sure, it us possible to do it. But, IMHO, class variables should be
declared in the class and be opaque. If you put several classes in a
module, the use of module wide references makes much less sense.
Another hack is to define a sub-module for each class, but that's not
nice either ...
I'm just curious if (and why) this syntactic sugar has been left out
intentionally.
--
Thorsten Ohl, Physics Department, TH Darmstadt --- PGP: AF 38 FF CE 03 8A 2E A7
http://crunch.ikp.physik.th-darmstadt.de/~ohl/ -------- 8F 2A C1 86 8C 06 32 6B
next prev parent reply other threads:[~1996-05-10 16:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-05-10 10:46 Class variables in O'Caml??? Thorsten Ohl
1996-05-10 12:57 ` Class variables in O'Caml??? + questions Christian Boos
1996-05-10 15:13 ` Thorsten Ohl [this message]
1996-05-13 16:36 ` Jerome Vouillon
1996-05-13 1:06 ` Upcoming O'Labl Jacques GARRIGUE
1996-05-13 19:04 Class variables in O'Caml??? + questions David Gurr
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=9605101513.AA16888@crunch \
--to=ohl@crunch.ikp.physik.th-darmstadt.de \
--cc=caml-list@pauillac.inria.fr \
/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