Talk on D at DORS/CLUC
monkyyy
crazymonkyyy at gmail.com
Fri May 10 21:13:12 UTC 2024
On Friday, 10 May 2024 at 08:43:14 UTC, RazvanN wrote:
> Hello everyone,
>
> Next week I'm going to have a talk on D at an open source
> conference in Zagrab [1].
> This is a great opportunity to advertise D so I'm going to talk
> about D's strength's. However, the talk is only 30 minutes in
> length and there's a lot of things I could potentially touch on
> - templates, dynamic arrays, safety, C interoperability etc.
> What do you think that I should focus my talk on? Any
> suggestions or cool D snippets are welcome.
>
> Regards,
> RazvanN
>
> [1] https://www.dorscluc.org/
explaining this code
```d
template toggle(bool defualt=false,alias discriminator=void, int
i=__LINE__){
static bool __toggle=defualt;
bool toggle(bool input){
if(input){
__toggle= ! __toggle;
}
return __toggle;
}
bool toggle(){
return __toggle;
}
}
```
More information about the Digitalmars-d
mailing list