comp.lang.ada
 help / color / mirror / Atom feed
* Read-Only Variables
@ 1988-07-27 17:40 Mark C. Adolph
  0 siblings, 0 replies; only message in thread
From: Mark C. Adolph @ 1988-07-27 17:40 UTC (permalink / raw)


We've come across an interesting problem here.  We're trying to build a
model of a processor that we can use in simulation.  In at least one
case, we have a register with bits that, in the hardware, can be read by
software but only modified by hardware.  How does one declare a record
component that is only visible for reading but can be updated
internally?  Making it private and declaring a function to allow reading
isn't appropriate as it would not be a correct model of the situation.

-- 

					-- Mark A.
					...uw-beaver!ssc-vax!adolph

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1988-07-27 17:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1988-07-27 17:40 Read-Only Variables Mark C. Adolph

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox