Header requests to Wikipedia give 405 error for some reason.
```
import std.stdio, std.net.curl;
void main() {
auto url = "https://en.wikipedia.org/wiki/Passenger_pigeon;;
auto http = HTTP();
options(url, http);
writeln(http.responseHeaders);
}
```
Output:
```
On Wednesday, 3 February 2021 at 15:59:28 UTC, H. S. Teoh wrote:
On Wed, Feb 03, 2021 at 03:47:34PM +, Imperatorn via
Digitalmars-d-learn wrote:
On Wednesday, 3 February 2021 at 14:00:23 UTC, JN wrote:
> [...]
[...]
Or dustmite?
Is it valid if I call GC.addRange with same or overlaping range?
Example:
https://run.dlang.io/is/a5a0Ag
import core.memory;
import std.experimental.allocator.mallocator;
import core.lifetime;
class Bar{
}
struct Foo{
Bar bar;
this(Bar bar){
this.bar = bar;
}
}
void
I study Dlang for just over a year only and have already risked
creating a program even with a graphical interface and distribute
it on the internet. Here is a part of that program, just the code
without a graphical interface. It is a program for modifying http
headers. You connect your
On Wed, Feb 03, 2021 at 03:47:34PM +, Imperatorn via Digitalmars-d-learn
wrote:
> On Wednesday, 3 February 2021 at 14:00:23 UTC, JN wrote:
> > I am dealing with some nasty issue in my code. Basically random
> > unrelated lines of code are crashing with access violations, and if
> > I switch
On Wed, Feb 03, 2021 at 02:00:23PM +, JN via Digitalmars-d-learn wrote:
> I am dealing with some nasty issue in my code. Basically random
> unrelated lines of code are crashing with access violations, and if I
> switch from dmd to ldc the crash goes away, or crash comes back, or it
> crashes
On Wednesday, 3 February 2021 at 14:00:23 UTC, JN wrote:
I am dealing with some nasty issue in my code. Basically random
unrelated lines of code are crashing with access violations,
and if I switch from dmd to ldc the crash goes away, or crash
comes back, or it crashes in a different spot.
I am dealing with some nasty issue in my code. Basically random
unrelated lines of code are crashing with access violations, and
if I switch from dmd to ldc the crash goes away, or crash comes
back, or it crashes in a different spot. Seems like I am
corrupting some memory somewhere (I interact
On Wednesday, 3 February 2021 at 07:20:06 UTC, Imperatorn wrote:
2. If not, why? (Is D still too small?)
D uses templates and a lot of code is generated at compile time.
It's the same reason C++ doesn't have any advanced refactoring
tools like e.g. Java does. In Java, it's simple to rename a
On Sunday, 31 January 2021 at 12:14:53 UTC, Imperatorn wrote:
It says experimental, but it's fine:
https://dlang.org/phobos/std_experimental_allocator.html
Well, this looks very nice but I have to deal with GC as long I
want to use other libraries that are relying on it or even just
It look like atomicFetchAdd a atomicFetchSub was added to ldc 8 days ago
and my distro has old version. I replace core.internal.atomic with this
https://raw.githubusercontent.com/ldc-developers/druntime/ldc/src/core/internal/atomic.d
and now everything works.
It's not even in the latest
On Wednesday, 3 February 2021 at 10:20:44 UTC, evilrat wrote:
On Wednesday, 3 February 2021 at 08:26:05 UTC, Max Haughton
wrote:
On Wednesday, 3 February 2021 at 05:30:37 UTC, Виталий Фадеев
wrote:
Possible to change the vtbl record at runtime ?
Has functional for update vtbl records ?
Do
On Wednesday, 3 February 2021 at 08:26:05 UTC, Max Haughton wrote:
On Wednesday, 3 February 2021 at 05:30:37 UTC, Виталий Фадеев
wrote:
Do you mean "Can I set onSuccess" at runtime?
Yes.
On Wednesday, 3 February 2021 at 05:30:37 UTC, Виталий Фадеев
wrote:
Reason:
Reuse component,
bind custom callback without creating new class.
Concept example:
class SaveFilePopup
{
void onSuccess() { /* default operations */ }
}
auto saveFile = new
On Wednesday, 3 February 2021 at 08:26:05 UTC, Max Haughton wrote:
On Wednesday, 3 February 2021 at 05:30:37 UTC, Виталий Фадеев
wrote:
Possible to change the vtbl record at runtime ?
Has functional for update vtbl records ?
Do you mean "Can I set onSuccess" at runtime? The virtual
tables
On Wednesday, 3 February 2021 at 05:30:37 UTC, Виталий Фадеев
wrote:
Reason:
Reuse component,
bind custom callback without creating new class.
Concept example:
class SaveFilePopup
{
void onSuccess() { /* default operations */ }
}
auto saveFile = new
On Wednesday, 3 February 2021 at 07:20:06 UTC, Imperatorn wrote:
As the title says:
1. Are there any (automated) refactoring tools for D?
2. If not, why? (Is D still too small?)
D is also designed to not need as much refactoring as other
languages, so even for our size there isn't a huge
17 matches
Mail list logo