comp.lang.ada
 help / color / mirror / Atom feed
* Types defining h/w r/o or w/o registers
@ 1991-05-30 13:03 Don Gardner
  1991-05-31 17:03 ` david.c.willett
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Don Gardner @ 1991-05-30 13:03 UTC (permalink / raw)


Is there some way to define a type such that all variables of that
type can be only read or only written?  For instance, I have a type that
defines the status register of some peripheral which can only be 
read.  It would be best if the compiler could flag any assignments 
to variables of such a type as errors.

Is there some other means for commonly handling this problem?  The 
compiler being used is VADSWorks, if an implementation-defined solution
is required.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~1991-06-05 13:59 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1991-05-30 13:03 Types defining h/w r/o or w/o registers Don Gardner
1991-05-31 17:03 ` david.c.willett
1991-05-31 17:10   ` david.c.willett
1991-05-31 17:26 ` J o s e D u a r t e
1991-06-01  8:34   ` Orville R. Weyrich
1991-06-01 10:01 ` Types defining h/w r/o or w/o regis stt
1991-06-02 16:54 ` Types defining h/w r/o or w/o registers rharwood
1991-06-03  7:57   ` Orville R. Weyrich
1991-06-04 14:08     ` John Goodenough
1991-06-04 14:48     ` Anthony Shipman
1991-06-05 13:59       ` John Goodenough

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