Search

August 03, 2022
Issues »
...noticed the following:

While creating an Unshared template (https://forum.dlang.org/post/xigdpyblcgsyaawhywva@forum...
August 03, 2022
Learn »
There's actually an `Unshared` template for this in `std.traits`, but for some reason...
August 03, 2022
Learn »
...you would have to check if `sym` is a template or function or something else.
August 03, 2022
Learn »
...template itself - is compile-time program (parameterizable), it can generate some code for you.

template...
August 03, 2022
Learn »
...function defined in a template is a static member of that template but not necessarily...
August 02, 2022
Learn »
...concept as a static struct that the template is like the struct or - "records" in...
August 02, 2022
Learn »
...you get stuck?

Maybe this helps:

A template can be seen as a static struct...
August 02, 2022
Learn »
...If a template contains members whose name is the same as the template identifier then...
August 02, 2022
Learn »
...a > 0` in this example is a (template) parameter to `filter` function. You can rewrite...
August 02, 2022
Learn »
...https://dlang.org/spec/template.html#implicit_template_properties

A template generates code, it cannot...
263 264 265 266 267 268 269 270 271 272 273
Next ›   Last »