Given a class/interface/struct, I'd like to duplicate it's design
exactly, as if I copied and pasted directly from the source and
just changed the name. I need to inspect the contents too. Is
this possible with D?
Main things I'm thinking will fail are (multiple) alias this
unless there is a
On Monday, 25 March 2019 at 16:25:37 UTC, cptgrok wrote:
Am I doing something wrong or is there some issue with curl or
something else? I'm pretty new to D and I'm not sure if I need
to go right down to raw sockets and re-invent the wheel or if
there is some other library that can help. If I ge
It depends on what you want. But you can always use composition instead of
inheritance for B. I have been using things like alias this, mixin and
ufcs to achive multiple iheritence and it works ok for me.
On Mon, Mar 25, 2019 at 10:40 PM Michelle Long via Digitalmars-d-learn <
digitalmars-d-learn
Since D does not support multiple inheritance, is there any way
to effectively achieve this?
class A;
class B;
class C : A, interface!B;
Then it is as if I have done
class A;
interface iB;
class B : iB;
class C : A, iB;
But I can then do
C c = new B;
(but since I can't make B inherit iB
I have a design question about (i guess) object interdependence
using gtkd.
There is an application class which sets its property mAppWin.
The app is passed as an argument to the window constructor.
During the window constructor a scale (trackbar) is created which
also receives and stores an
On Monday, 25 March 2019 at 19:02:18 UTC, cptgrok wrote:
On Monday, 25 March 2019 at 16:44:12 UTC, Andre Pany wrote:
First idea, please switch to x86_64 if possible. This will
also be the default of Dub in the next dmd release or the
release after.
Kind regards
Andrew
Figured out --arch=x86
On Monday, 25 March 2019 at 16:44:12 UTC, Andre Pany wrote:
First idea, please switch to x86_64 if possible. This will also
be the default of Dub in the next dmd release or the release
after.
Kind regards
Andrew
Figured out --arch=x86_64, thanks! Sadly I don't see any change.
I'm not having
On Thursday, 21 March 2019 at 02:27:46 UTC, SrMordred wrote:
On Tuesday, 19 March 2019 at 19:50:15 UTC, Craig wrote:
Take a look at my lib, its a simple hot-reload external dll lib:
https://github.com/SrMordred/reloaded
I did´nt use it extensively, but its simple enough to be
tweaked at your
On Monday, 25 March 2019 at 16:25:37 UTC, cptgrok wrote:
I need to review syslogs for over 160 systems monthly, and I am
trying to write a utility to automate bulk downloads from a
custom web service where they are hosted. I need to calculate a
date range for the prior month, add start and end
I need to review syslogs for over 160 systems monthly, and I am
trying to write a utility to automate bulk downloads from a
custom web service where they are hosted. I need to calculate a
date range for the prior month, add start and end date and a
serial number to the query string for each sys
On Sunday, 24 March 2019 at 12:45:13 UTC, Francesco Mecca wrote:
https://run.dlang.io/is/zRcj59
```
alias Alg = Algebraic!(int, string);
void main()
{
int n = 2;
Alg value;
value = n == 2 ? 2 : "string";
}
```
The original code used SumType but the effect is the same.
I suppo
On Saturday, 23 March 2019 at 17:33:31 UTC, tchaloupka wrote:
I've no idea what should be done with C's main thread as it
can't be attached because it'll hang.
In one of forum threads I've also read the idea to not using
foreign threads with GC but somehow delegate their work to D's
thread.
Can
On Monday, 25 March 2019 at 09:27:03 UTC, Victor Porton wrote:
/tmp/temp_7F3C101460D0.d(9,5): Error: template instance
`synchronizedMemoize!f` template `synchronizedMemoize` is not
defined, did you mean sychronizedMemoize(alias fun)()?
Why the error?
Sometimes, template error messages are ha
On Monday, 25 March 2019 at 09:27:03 UTC, Victor Porton wrote:
///
template sychronizedMemoize(alias fun) {
void sychronizedMemoize() { }
}
void f() { }
void main()
{
synchronizedMemoize!f();
}
///
/tmp/temp_7F3C101460D0.d(9,5): Error: template instance
`synchronizedMemoize!f` templat
///
template sychronizedMemoize(alias fun) {
void sychronizedMemoize() { }
}
void f() { }
void main()
{
synchronizedMemoize!f();
}
///
/tmp/temp_7F3C101460D0.d(9,5): Error: template instance
`synchronizedMemoize!f` template `synchronizedMemoize` is not
defined, did you mean sychronize
On Sunday, 24 March 2019 at 12:45:13 UTC, Francesco Mecca wrote:
https://run.dlang.io/is/zRcj59
```
alias Alg = Algebraic!(int, string);
void main()
{
int n = 2;
Alg value;
value = n == 2 ? 2 : "string";
}
```
The original code used SumType but the effect is the same.
I suppo
16 matches
Mail list logo