February 02, 2024 General » Re: What is the reasoning behind the lack of conversions when passing parameters | |||
|---|---|---|---|
| |||
C++ has this, implicit conversion of structs. It looks great with simple cases. However, as... | |||
February 03, 2024 General » Re: What is the reasoning behind the lack of conversions when passing parameters | |||
|---|---|---|---|
| |||
...conv:to;
string o;
foreach(i,S;(Parameters!F)[0..T.length]){
o~="args["~i... | |||
February 02, 2024 General » Re: What is the reasoning behind the lack of conversions when passing parameters | |||
|---|---|---|---|
| |||
[...] I agree. In my early D code I also used a ton of `alias this... | |||
February 02, 2024 General » Re: What is the reasoning behind the lack of conversions when passing parameters | |||
|---|---|---|---|
| |||
I really don't see how this is crippling anything, but then again, I'd... | |||
February 03, 2024 General » Re: What is the reasoning behind the lack of conversions when passing parameters | |||
|---|---|---|---|
| |||
On Friday, 2 February 2024 at 23:49:21 UTC, Carl Sturtivant wrote: I've... | |||
February 02, 2024 General » Re: What is the reasoning behind the lack of conversions when passing parameters | |||
|---|---|---|---|
| |||
...so constructors can be called to pass parameters to them. Working around this design decision... | |||
February 02, 2024 General » Re: What is the reasoning behind the lack of conversions when passing parameters | |||
|---|---|---|---|
| |||
I want to say that TDPL discusses this somewhere, but I can't find where... | |||
February 02, 2024 General » What is the reasoning behind the lack of conversions when passing parameters | |||
|---|---|---|---|
| |||
```
import std.variant, std.math, std.stdio;
void f(Variant z) {
writeln(z);
}
void main... | |||
February 02, 2024 Learn » Re: Scripting with Variant from std.variant: parameter passing | |||
|---|---|---|---|
| |||
...to implement the function that accepts the parameters and wraps in a Variant. This is... | |||
February 02, 2024 Learn » Re: import locality with function parameters | |||
|---|---|---|---|
| |||
Yes! Glad it's now part of D. Thank you. | |||
Copyright © 1999-2021 by the D Language Foundation