January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
so here is final code, in idiomatic D, as far as I can tell ;-) curious... | |||
January 20, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
The compiler rules aren't enforced based on what code you wrote, it doesn't... | |||
January 20, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
On 1/20/22 15:10, Ali Çehreli wrote:
> void foo(const int[]) {} // Idiomatic
As... | |||
January 20, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
On 1/20/22 15:01, forkit wrote: > On Thursday, 20 January 2022 at 22... | |||
January 20, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
I'm not sure I understand. At what point in this function is valuesArray modified... | |||
January 20, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
Because it would allow altering const data. e.g.: ```d const(int[])[const(int)] v... | |||
January 20, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
Cannot work out why I cannot pass valuesArray in as ref const?? get error: Error... | |||
January 20, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
Nice. Thanks. I had to compromise a little though, as assumUnique is @system, and all... | |||
January 20, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
On Thursday, 20 January 2022 at 12:15:56 UTC, forkit wrote: Allocating 4 megs... | |||
January 20, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
On Thursday, 20 January 2022 at 10:11:10 UTC, bauss wrote: The 'uniqueness' of... | |||
Copyright © 1999-2021 by the D Language Foundation