Search

May 11, 2022
Learn »
...compile-time error:

```d
@safe:

auto map(alias fun, T)(T[] arr)
{
    auto result = arr...
May 11, 2022
Learn »
...void main()
{
    alias toks = getSymbolsByUDA!(mixin(__MODULE__), Token);

    static foreach (t; toks)
    {{
        alias U = getUDAs...
May 10, 2022
General »
...foo.bar)).writefln!"4. %s";
  // by alias
  "5. ".writeln(&foo);
  (&foo).writefln...
May 10, 2022
Learn »
...Idk what's happening there

Try
```d
alias getParams = Parameters!(typed);//add the parenthesis
```
_Maybe...
May 10, 2022
Learn »
...contract programming or otherwise throwing errors.

```d
alias ir = inclusiveRange;
auto inclusiveRange(T = int)(T...
May 10, 2022
Learn »
...also gives an error!
```d
void main()
{
  alias T =  char;

  import std.traits;
  foreach(useableType...
May 10, 2022
Learn »
...try
```d
template getParams(alias overload) {
  static if (__traits(isTemplate, overload)) {
    //alias typed = overload!int...
May 10, 2022
Learn »
...overload:

```d
template getParams(alias overload) {
  static if (__traits(isTemplate, overload)) {
    alias typed = overload!int...
May 09, 2022
Learn »
...have a struct template that takes an alias parameter and I'm trying to distinguish...
May 08, 2022
Learn »
...return x + a;
}
enum int a = 2;

alias foo = partial!(foo, a);

void main() {
    int...
220 221 222 223 224 225 226 227 228 229 230
Next ›   Last »