February 14, 2024 General » Re: What is the reasoning behind the lack of conversions when passing parameters | |||
|---|---|---|---|
| |||
The way Phobos currently does it is (essentially) by storing a void* and a TypeInfo... | |||
February 14, 2024 General » Re: What is the reasoning behind the lack of conversions when passing parameters | |||
|---|---|---|---|
| |||
No, each type would have to be enumerated in the declaration. The usual way to... | |||
February 14, 2024 General » Re: What is the reasoning behind the lack of conversions when passing parameters | |||
|---|---|---|---|
| |||
Informally Any would be the sum of all types. Would your proposal encompass this? | |||
February 13, 2024 General » Re: What is the reasoning behind the lack of conversions when passing parameters | |||
|---|---|---|---|
| |||
Isn't that what a sumtype is? | |||
February 14, 2024 General » Re: What is the reasoning behind the lack of conversions when passing parameters | |||
|---|---|---|---|
| |||
Variant is important to some of us because of its universality. If all conversions are... | |||
February 12, 2024 Issues » [Issue 24389] New: importC: Building zlib in Phobos with importC fails on FreeBSD 14 | |||
|---|---|---|---|
| |||
...qsort_r()'s order of last two parameters was * changed, and the comparator function is... | |||
February 11, 2024 General » Re: What is the reasoning behind the lack of conversions when passing parameters | |||
|---|---|---|---|
| |||
We've considered it many times, and have decided against it due to the consistently... | |||
February 11, 2024 Issues » [Issue 24386] New: [REG 2.095.1] constructor has no function body with return type inference | |||
|---|---|---|---|
| |||
...F)
{
static if (is(typeof(F) P == __parameters))
alias FunctionParameters = P;
}
template numConstructorOverloads(Overloads...)
{
static... | |||
February 09, 2024 General » Re: What is the reasoning behind the lack of conversions when passing parameters | |||
|---|---|---|---|
| |||
Overloading is the distinguishing reason. | |||
February 09, 2024 General » Re: What is the reasoning behind the lack of conversions when passing parameters | |||
|---|---|---|---|
| |||
At one point something related was viewed with approval. Probably got nixed behind the scenes... | |||
Copyright © 1999-2021 by the D Language Foundation