Skip to content

Commit bf61c8c

Browse files
committed
cc docs: pass until polymorphism
1 parent 66ff446 commit bf61c8c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

docs/_docs/reference/experimental/capture-checking/advanced.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
22
layout: doc-page
3-
title: "Capability Polymorphism -- Advanced Use Cases"
3+
title: "Capability Polymorphism"
44
nightlyOf: https://docs.scala-lang.org/scala3/reference/experimental/capture-checking/advanced.html
55
---
66

7+
Advanced use cases.
78

89
## Access Control
910
Analogously to type parameters, we can lower- and upper-bound capability parameters where the bounds consist of concrete capture sets:

docs/_docs/reference/experimental/capture-checking/polymorphism.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,12 @@ class ConcatIterator[A, C^](var iterators: mutable.List[IterableOnce[A]^{C}]):
6464
this // track contents of `it` in the result
6565
```
6666
In such a scenario, we also should ensure that any pre-existing alias of a `ConcatIterator` object should become
67-
inaccessible after invoking its `concat` method. This is achieved with mutation and separation tracking which are
68-
currently in development.
67+
inaccessible after invoking its `concat` method. This is achieved with [mutation and separation tracking](separation-checking.md) which are currently in development.
6968

7069
## Capability Members
7170

7271
Just as parametrization by types can be equally expressed with type members, we could
73-
also define the `Source[X^]` class above could using a _capability member_:
72+
also define the `Source[X^]` class above using a _capability member_:
7473
```scala
7574
class Source:
7675
type X^
@@ -90,6 +89,4 @@ trait GPUThread extends Thread:
9089
Since `caps.cap` is the top element for subcapturing, we could have also left out the
9190
upper bound: `type Cap^ >: {cudaMalloc, cudaFree}`.
9291

93-
----
94-
95-
[More Advanced Use Cases](advanced.md)
92+
**Advanced uses:** We discuss more advanced uses cases for capability members [here](advanced.md).

0 commit comments

Comments
 (0)