On 04/29/2010 09:04 PM, Larry Luther wrote:
This code describes the concept:
module a;
import B;
struct A { B *ptr; }
-
module b;
import A;
struct B { A *ptr; }
-
Can this be done?
sure
Do both classes have to be in the same module?
It'
This code describes the concept:
module a;
import B;
struct A { B *ptr; }
-
module b;
import A;
struct B { A *ptr; }
-
Can this be done?
Do both classes have to be in the same module?
On 04/29/2010 08:50 PM, Larry Luther wrote:
Why do I get an "object.Error: Access Violation" in the following code?
If I change "class" to "struct" and remove "public:" I don't get an error.
I'm using D2.
import std.stdio;
class Plane {
public:
int
xres,
yres;
};
void ma
Why do I get an "object.Error: Access Violation" in the following code?
If I change "class" to "struct" and remove "public:" I don't get an error.
I'm using D2.
import std.stdio;
class Plane {
public:
int
xres,
yres;
};
void main (string[] args) {
Plane
p;
p.xres = 1920;
Ellery Newcomer:
> http://d.puremagic.com/issues/show_bug.cgi?id=3508
> Kyle Foley's patch brings my program to a more respectable 1.6 times
> slower or thereabouts.
No need to write another bug report then.
Bye,
bearophile
Ellery Newcomer:
> I'm muddling over the following code, which compares an array/take
> composition with the analogous imperative code. For medium-large values
> of n, I'm seeing a fivefold degradation in performance, which blows up
> to 30 times worse at n=5000.
Some of the code written b
Oh I get it. hasLength is broken.
http://d.puremagic.com/issues/show_bug.cgi?id=3508
Kyle Foley's patch brings my program to a more respectable 1.6 times
slower or thereabouts.
On 04/29/2010 01:52 PM, Ellery Newcomer wrote:
Hello.
I'm muddling over the following code, which compares an arr
Hello.
I'm muddling over the following code, which compares an array/take
composition with the analogous imperative code. For medium-large values
of n, I'm seeing a fivefold degradation in performance, which blows up
to 30 times worse at n=5000.
Any ideas on why this is or better ways to
Hi folks,
I'm crossposting this question from digitalmars.D.learn. Looking at
D2's documentation on the std.thread module,
http://www.digitalmars.com/d/2.0/phobos/std_thread.html
...there are several functions take a ThreadAddr value as an argument.
But there are no documented functions, method