Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!bu.edu!inmet!stt From: stt@inmet.inmet.com Newsgroups: comp.lang.ada Subject: Re: Types defining h/w r/o or w/o regis Message-ID: <20600105@inmet> Date: 1 Jun 91 10:01:00 GMT References: <3949@titan.tsd.arlut.utexas.edu> Lines: 13 Nf-ID: #R:titan.tsd.arlut.utexas.edu:3949:inmet:20600105:000:413 Nf-From: inmet.inmet.com!stt Jun 1 06:01:00 1991 Re: Read-only types Rather than associating the Read-only-ness with the type, I would associate it with the object. The simplest implementation is to declare the object in a package body, with an appropriate address clause, and then define a parameterless function to return the value of the object. This function could be inlined. S. Tucker Taft stt@inmet.inmet.com Intermetrics, Inc. Cambridge, MA 02138