Article View: comp.specification.z
Article #82Handling derived types
From: Yasushi Saito
Date: Thu, 15 Oct 1992 07:47
Date: Thu, 15 Oct 1992 07:47
19 lines
1074 bytes
1074 bytes
Hello. I am a new user of Z and I have a question about handling
derived types in Z. Suppose there is a class A, and also, class B and
C derived from A (the below example is written in C++).
class A { class B : public A { class C : public A {
.. .. ..
some_op(); }; };
};
A::some_op can process objects of either class B or C, but accesses
only the components of A, leaving other components of B or C unchanged.
My question is that how I can write the specification of operations
like some_op().
--
Yasushi Saito
Access Co. Ltd. Tokyo, Japan.
Technical Details
Message-ID:
<YASUSHI.92Oct15164721@asley.access.co.jp>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!ames!sun-barr!sh.wide!wnoc-tyo-news!hoffman!access.co.jp!newshost!yasushiShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!ames!sun-barr!sh.wide!wnoc-tyo-news!hoffman!access.co.jp!newshost!yasushi From: yasushi@access.co.jp (Yasushi Saito) Newsgroups: comp.specification.z Subject: Handling derived types Message-ID: <YASUSHI.92Oct15164721@asley.access.co.jp> Date: 15 Oct 92 07:47:21 GMT Sender: news@access.co.jp Organization: Access Co. Ltd. Tokyo, Japan. Lines: 19