[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dylan Constants
- To: Scott_Fahlman@SEF1.SLISP.CS.CMU.EDU, Harry.Bretthauer@gmd.de
- Subject: Re: Dylan Constants
- From: alms@cambridge.apple.com (Andrew LM Shalit)
- Date: Tue, 20 Oct 1992 10:36:55 -0500
- Cc: <duncan@stowe.bdsw.com>, <info-dylan@CAMBRIDGE.APPLE.COM>, bretth@gmdzi.gmd.de
At 1:45 PM 10/20/92 +0100, Harry.Bretthauer@gmd.de wrote:
>
>
> > From the Dylan reference, there appears to be now way of defining a read
> > only constant ala the Common Lisp DEFCONSTANT macro.
>
> One thing, I don't like in the CL DEFCONSTANT spec is that it mixes
> the concepts of bindings and data structures.
> In an object oriented language like Dylan it should be a property of
> the anonymous object if it is read only or not. The question if the
> binding is mutable or immutable is an orthogonal one, although the
> compiler can make more optimizations if both the binding and the
> object are read only.
Dylan maintains the separation you want, and will continue to do so.