* Type-Extension and Procedure Variables
@ 1993-08-09 1:58 Whitney de Vries
0 siblings, 0 replies; 2+ messages in thread
From: Whitney de Vries @ 1993-08-09 1:58 UTC (permalink / raw)
Does ADA ( 8x or 9x ) have procedure variables or similar ?
Does ADA ( 8x or 9x ) have type extension or similar ?
TYPE
BaseType = RECORD
x,y : INTEGER;
END;
ExtendedType = RECORD ( BaseType )
z : INTEGER;
END; (* an extension of BaseType with fields x,y,z *)
Handler = PROCEDURE ( VAR msg : BaseType ); (* PROCEDURE TYPE *)
VAR
handler : Handler; (* procedure variable *)
Thanks,
Whitney
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Type-Extension and Procedure Variables
@ 1993-08-09 2:37 Kenneth Anderson
0 siblings, 0 replies; 2+ messages in thread
From: Kenneth Anderson @ 1993-08-09 2:37 UTC (permalink / raw)
In comp.lang.ada Whitney de Vries write:
>Does ADA ( 8x or 9x ) have procedure variables or similar ?
>Does ADA ( 8x or 9x ) have type extension or similar ?
Ada9X supports both.
Procedure variables can be supported in a fashion using generics in
Ada83. I'm not sure about type extension using Ada83.
Take a look at the Intro to Ada9X document available for ftp at
ajpo.sei.cmu.edu in the directory public/ada9x/ada9x.reports.
Hope this helps,
Ken Anderson
--
-------------------------------------------------------------------------------
-
Ken Anderson | "I'd much rather live in perfection,
U.C. Irvine | than deal with reality." -- Kenbod
-------------------------------------------------------------------------------
-
I think we should tax all foreigners | Practice random kindness and
living abroad. -- John | senseless acts of beauty.
Cleese | -- Anne Herbert
-------------------------------------------------------------------------------
-
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1993-08-09 2:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1993-08-09 1:58 Type-Extension and Procedure Variables Whitney de Vries
-- strict thread matches above, loose matches on Subject: below --
1993-08-09 2:37 Kenneth Anderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox