19.11.2014 Views

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Bound of type: bound ∆ (τ) = σ<br />

bound ∆ (α) = ∆(α)<br />

bound ∆ (σ) = σ<br />

One owner for all the visible methods: p ⊢ oneOwner(C)<br />

[ONEOWNER]<br />

∀f ∈ visible p (C) . f only occurs once in visible p (C)<br />

p ⊢ oneOwner(C)<br />

Auxiliary functions for methods: defined p / inherited p / visible p (C) = { −→ f }<br />

defined p (C) = { −−−−−−−→ Fname(fd)} where C −→ fd ∈ p<br />

inherited p (C) = ⊎ N i ∈{ −→ N } {f i | f i ∈ visible p (N i ), f i ∉ defined p (C)} where C extends { −→ N } ∈ p<br />

visible p (C) = defined p (C) ⊎ inherited p (C)<br />

Figure A.5: Static Semantics of Basic Core <strong>Fortress</strong> (III)<br />

A.2 Core <strong>Fortress</strong> with Where Clauses<br />

In this section, we define a <strong>Fortress</strong> core calculus with where clauses. We call this calculus Core <strong>Fortress</strong> with Where<br />

Clauses. Core <strong>Fortress</strong> with Where Clauses is an extension of Basic Core <strong>Fortress</strong> with where clauses.<br />

A.2.1<br />

Syntax<br />

<strong>The</strong> syntax for Core <strong>Fortress</strong> with Where Clauses is provided in Figure A.6. For simplicity, we use the following<br />

notational conventions:<br />

• We abbreviate a sequence of relations α 1 extends { −→ K 1 } · · · α n extends { −→ −−−−−−−−−−−→<br />

K n } to αextends { −→ K} and τ 1

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

Saved successfully!

Ooh no, something went wrong!