26.09.2013 Views

Transformation of Applicative Specifications into Imperative ...

Transformation of Applicative Specifications into Imperative ...

Transformation of Applicative Specifications into Imperative ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

✄<br />

end<br />

empty : T = 〈〉,<br />

f : Unit → T<br />

f() ≡ empty<br />

scheme I_SPEC =<br />

class<br />

type<br />

T = Int ∗<br />

end<br />

variable<br />

t : T<br />

value<br />

empty : Unit → write t Unit<br />

empty() ≡ t := 〈〉,<br />

f : Unit → write t Unit<br />

f() ≡ empty()<br />

6.6. MORE THAN ONE TYPE OF INTEREST<br />

6.6 More Than One Type <strong>of</strong> Interest<br />

In some cases it is necessary to introduce more than one type <strong>of</strong> interest. The<br />

transformation when dealing with more than one type <strong>of</strong> interest resembles<br />

that <strong>of</strong> a transformation with one type <strong>of</strong> interest. The only difference is<br />

that there are more types <strong>of</strong> interest to take care <strong>of</strong>. Each type <strong>of</strong> interest is<br />

treated as described above without affecting the other types <strong>of</strong> interest.<br />

55

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!