The [std.net.curl](https://dlang.org/phobos/std_net_curl.html)
module provides these functions:
```d
T[] post(T = char, PostUnit)(const(char)[] url, const(PostUnit)[]
postData, HTTP conn = HTTP())
T[] post(T = char)(const(char)[] url, string[string] postDict,
HTTP conn = HTTP())
```
How can
On Sunday, 7 May 2023 at 21:12:22 UTC, Chris Piker wrote:
On the other hand, your first suggestion of using opCast() does
seem like a reasonable choice to me. Can you provide a short
code snippet using opCast to achieve the same result?
I've never used it, and particularly I know that I don't
On Wednesday, 10 May 2023 at 14:42:50 UTC, Inkrementator wrote:
On Sunday, 7 May 2023 at 21:12:22 UTC, Chris Piker wrote:
https://gist.github.com/run-dlang/9b7aec72710b1108fc8277789776962a
Thanks for posting that. Reading over the code I'm reminded that
I never cared whether something was an
On Wed, May 10, 2023 at 03:24:48PM +, Chris Piker via Digitalmars-d-learn
wrote:
[...]
> It's off topic, but I forget why managing memory for rvalues* was
> pushed onto the programmer and not handled by the compiler. I'm sure
> there is a good reason but it does seem like a symmetry breaking
We do not, no.
Reference counting is not currently in the language, although you can
fake it with structs.
Its a huge shame, but it should be added at some point because the
compiler would tell the backend that it is possible to elide pair calls.
However it'll have to wait for the DIP queue
On Wednesday, 10 May 2023 at 18:15:36 UTC, Richard (Rikki) Andrew
Cattermole wrote:
We do not, no.
Reference counting is not currently in the language, although
you can fake it with structs.
Its a huge shame, but it should be added at some point because
the compiler would tell the backend th
On 11/05/2023 6:23 AM, Ferhat Kurtulmuş wrote:
Thank you Rikki for the clarification. I think d need this without ugly
workarounds.
Yeah we do.
Reference counting is expensive, and modern backends have the capability
to elide pairs of calls. So this would be a massive improvement just
from t
On Wednesday, 10 May 2023 at 16:01:40 UTC, H. S. Teoh wrote:
x = y;
^ ^
| |
lvalue rvalue
...
// This is OK:
x = y + 1;
// This is not OK:
(y + 1) = x;
Thanks for the clear explanation.
My problem with the ter
On Wed, May 10, 2023 at 07:56:10PM +, Chris Piker via Digitalmars-d-learn
wrote:
[...]
> My problem with the terms lvalue and rvalue is much more basic, and is
> just a personal one that only affects probably 0.1% of people. I just
> can't keep left vs. right straight in real life. "Right" i
On Wednesday, 10 May 2023 at 20:25:48 UTC, H. S. Teoh wrote:
On Wed, May 10, 2023 at 07:56:10PM +, Chris Piker via
Digitalmars-d-learn wrote: [...]
I also suffer from left/right confusion, and always have to
pause to think about which is the right(!) word before uttering
it.
Oh, I though wa
On Wed, May 10, 2023 at 10:57:13PM +, Chris Piker via Digitalmars-d-learn
wrote:
> On Wednesday, 10 May 2023 at 20:25:48 UTC, H. S. Teoh wrote:
> > On Wed, May 10, 2023 at 07:56:10PM +, Chris Piker via
> > Digitalmars-d-learn wrote: [...]
> > I also suffer from left/right confusion, and al
11 matches
Mail list logo