Retrieve the return type of the current function

learner learner at nomail.com
Tue May 5 16:36:48 UTC 2020


Good morning,

Is it possible something like this?

```
int foo() {

     __traits(some_trait, some_generic_this) theInt = 0;
```

I mean, without using the function name in the body, like 
ReturnType!foo ?



More information about the Digitalmars-d-learn mailing list