diff options
| author | Yong He <yonghe@outlook.com> | 2023-04-20 17:31:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-20 17:31:39 -0700 |
| commit | 8177fff665d10f2a116d8fd6b7a48b68d518647f (patch) | |
| tree | b33f017772a5ec78f1343e4672320ccf3f6ec883 | |
| parent | 088644c21c015eb60a41a59f417990023f1f4ef8 (diff) | |
Update 04-interfaces-generics.md
| -rw-r--r-- | docs/user-guide/04-interfaces-generics.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/user-guide/04-interfaces-generics.md b/docs/user-guide/04-interfaces-generics.md index dccaa045f..322134d9f 100644 --- a/docs/user-guide/04-interfaces-generics.md +++ b/docs/user-guide/04-interfaces-generics.md @@ -461,7 +461,8 @@ Note that the builtin `vector<float, N>` type also has an generic value paramete > #### Note #### > The only type of generic value parameters are integer values. `bool`, `float` and > other types cannot be used in a generic value parameter. Computations in a type -> expression are not supported, for example, `vector<float, 1+1>` is not allowed. +> expression are supported as long as they can be folded at compile time. For example, +`vector<float, 1+1>` is equivalent to `vector<float, 2>`. Interface-typed Values |
