Creating a pointer array
data pulverizer
data.pulverizer at gmail.com
Sun Aug 23 00:50:54 UTC 2020
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!
More information about the Digitalmars-d-learn
mailing list