March 22, 2023 General » Re: Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
...Unfortunately, an alias this approach wouldn't be sufficient in this case since alias this... | |||
March 22, 2023 General » Re: Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
...more about specifically recognizing and dissolving the alias usage on the *callee* side during type... | |||
March 22, 2023 Issues » [Issue 23798] New: Type inference should traverse trivial aliases | |||
|---|---|---|---|
| |||
...C++, you can infer instantiation through simple alias templates: ``` template <typename T, int M, int... | |||
March 22, 2023 General » Re: Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
What the OP is referring to is an old D bug [1]. In this thread... | |||
March 22, 2023 General » Re: Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
Looks like it substitutes through simple cases but fails with more complex ones? ``` #include <type... | |||
March 22, 2023 General » Re: Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
...11:00:40 UTC, zjh wrote: ```d alias Vec3(S) = Matrix!(S, 3, 1); void... | |||
March 22, 2023 General » Re: Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
Oh wait, correction: you *can* do it! Neat! I wonder how that works. Probably it... | |||
March 22, 2023 General » Re: Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
You can perfectly fine use `alias Vector3(T) = Matrix!(T, 3, 1)` in D. You... | |||
March 22, 2023 General » Re: Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
When you have questions, please file a bugzilla. D is only for `specific problems`, please... | |||
March 22, 2023 General » Re: Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
...Matrix<T, 3, 1>; ``` I declare an alias and I use it everywhere. It acts... | |||
Copyright © 1999-2021 by the D Language Foundation