19 lines
265 B
Markdown
19 lines
265 B
Markdown
# Int
|
|
|
|
`Int` は整数値を表す primitive type constraint である。
|
|
|
|
## 例
|
|
|
|
```dcdl
|
|
retry = Int default 3;
|
|
port = Int & >= 1 & <= 65535;
|
|
```
|
|
|
|
## 制約合成
|
|
|
|
数値比較制約と合成できる。
|
|
|
|
```dcdl
|
|
NarrowedPort = Int & >= 1 & <= 65535 & > 443;
|
|
```
|