October 15, 2022 Learn » Re: Linker Error with Template Function | |||
|---|---|---|---|
| |||
Thanks for this Ali. I found it useful to see another way to solve this... | |||
October 15, 2022 Learn » Re: Generate a pointer to a method of a struct | |||
|---|---|---|---|
| |||
Thanks. Just found that
```
template funcptr (alias method) {
enum funcptr = &method;
}
```
works on both dmd... | |||
October 15, 2022 Issues » [Issue 23416] New: Difference DMD/GDC: Error: non-constant expression `& foo` | |||
|---|---|---|---|
| |||
...kdevel@vogtner.de
```
module dmd_gdc_difference;
template funcptr (alias method) {
immutable funcptr = &method;
}
struct... | |||
October 14, 2022 Learn » Generate a pointer to a method of a struct | |||
|---|---|---|---|
| |||
...replaced the function call with a value:
```
template funcptr (alias method) {
immutable funcptr = &method; // (*)
}
```
That... | |||
October 14, 2022 Issues » [Issue 23404] CTFE evaluation is unecessary when passing function return type as aliased template argument | |||
|---|---|---|---|
| |||
...to be the return type but the template instance, but there's nothing to be... | |||
October 13, 2022 Issues » [Issue 23411] New: ImportC: undefined identifier __builtin_nanf | |||
|---|---|---|---|
| |||
...undefined identifier `__builtin_nanf`, did you mean template `__builtin_inf()()`? On macOS, the standard C... | |||
October 11, 2022 Issues » [Issue 1807] ENHANCEMENT: Let IFTI "see through" templates to simple aliases | |||
|---|---|---|---|
| |||
...would be that your template alias would include an additional template (with some rudimentary sketch... | |||
October 11, 2022 Issues » [Issue 23404] CTFE evaluation is unecessary when passing function return type as aliased template argument | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=23404
ag0aep6g <ag0aep6g@gmail.com> changed:
What... | |||
October 11, 2022 Learn » Re: Example for multi level template composition | |||
|---|---|---|---|
| |||
This guy could have read std.meta's documentation or source, but instead makes assumptions... | |||
October 10, 2022 Issues » [Issue 23404] New: CTFE evaluation is unecessary when passing function return type as aliased template argument | |||
|---|---|---|---|
| |||
...when passing function
return type as aliased template argument
Product: D
Version: D2
Hardware: x86... | |||
Copyright © 1999-2021 by the D Language Foundation