January 06, 2022 General » Re: Worst ideas/features in programming languages? | |||
|---|---|---|---|
| |||
Why is that a surprise? You could similarly do something like: alias S=AliasSeq!(string); | |||
January 05, 2022 General » Re: Worst ideas/features in programming languages? | |||
|---|---|---|---|
| |||
...example could be written as follows:
alias apply(alias fun) = (args) => fun(args.tupleof);
[(1... | |||
January 05, 2022 Announce » Re: Error message formatter for range primitives | |||
|---|---|---|---|
| |||
...One solution is as follows:
void StaticAssert(alias x)() if (x) {}
bool testInputRange(T)() {
StaticAssert... | |||
January 05, 2022 General » Re: Worst ideas/features in programming languages? | |||
|---|---|---|---|
| |||
Well, then let's not extend `alias this`. How about something like opArgs, dealing specifically... | |||
January 04, 2022 General » Re: Worst ideas/features in programming languages? | |||
|---|---|---|---|
| |||
I confess, this makes me uneasy. `alias this` produced a lot of unintended consequences. I... | |||
January 05, 2022 Learn » Returning value by ref does not create a ref. Is this intentional? | |||
|---|---|---|---|
| |||
...c = func(a); // I expected c to alias a here
c = 10; // Expected to modify... | |||
January 05, 2022 General » Re: Worst ideas/features in programming languages? | |||
|---|---|---|---|
| |||
...that Phobos tuples are implemented using an `alias this` to a built-in "tuple" of... | |||
January 04, 2022 Learn » Re: what's the proper way to assign this? | |||
|---|---|---|---|
| |||
...changelog/2.088.0.html#remove-nullable-alias-get-this A reminder at least to... | |||
January 04, 2022 Issues » [Issue 20956] [DIP1000] @safe defeated by closure capturing ref parameter | |||
|---|---|---|---|
| |||
...live.nl> ---
Reduced a bit more:
```
@safe:
alias DG = void delegate() @safe;
void main()
{
DG... | |||
January 04, 2022 General » Re: Worst ideas/features in programming languages? | |||
|---|---|---|---|
| |||
...DIP draft extends "alias this" to allow this (which should work anyway): alias Seq(T... | |||
Copyright © 1999-2021 by the D Language Foundation