On Wednesday, 19 August 2020 at 22:21:21 UTC, data pulverizer wrote:
On Wednesday, 19 August 2020 at 21:10:00 UTC, data pulverizer wrote:
alias is one of those awesome chameleons in D. The template equivalent is

```
template P(T) = T*;
```


Correction ...
```
template P(T){
  alias P = T*;
}
```

... just realised,

```
alias P(T) = T*;
```

Is just shorthand for ...

```
template P(T)
{
  alias P = T*;
}
```

Just as functions, classes, structs, and enums have template shorthands. Lol!

Reply via email to