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
Re: Class variables in O'Caml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1996-05-15 (08:32)
From: gurr@s...
Subject: Re: Class variables in O'Caml

Chet Murthy <>:
> Class variables are valuable syntactic sugar, because they group the
> mutable, but shared, state of a class together, in a way which is
> difficult for a naive programmer to ignore.

"mutable, but shared, state of a class" sounds wrong.  How about
"mutable shared state of instances of a class" or "mutable state of 
a class"?  The latter is simply a slot of a class object.  The former
is a limited form of delegation.  What ever would be desired for
the commercial sector, please stick to the pedantic tradition of
ML and give extensions a coherent semantics.  -D