Author |
Message |
Topic: 2d arrays |
Eelco
Replies: 3
Views: 9218
|
Forum: General Posted: Wed Aug 04, 2004 7:01 am Subject: 2d arrays |
thanks, but thats hardly more elegant, just written another way.
but this is really bad... there are a lot of things i really like about D, but when it missed such a trivial function like this i fi ... |
Topic: 2d arrays |
Eelco
Replies: 3
Views: 9218
|
Forum: General Posted: Tue Aug 03, 2004 8:59 am Subject: 2d arrays |
is there an elegant way in D to declare a non-static multidimensional array, and instantiate it later?
if so i havnt seen it.
Quad[][] Map;
void CreateMap(ubyte w, ubyte ... |
Topic: Incompatible types or compiler bug? |
Eelco
Replies: 3
Views: 9398
|
Forum: General Posted: Mon Jul 05, 2004 3:47 am Subject: Re: Inlining |
I think of it like this: First it has to work, then it can work better.
ofcource, ofcource.
but the annoying part is that i dont know if it isnt implemented yet or if im doing something wrong. ... |
Topic: Incompatible types or compiler bug? |
Eelco
Replies: 3
Views: 9398
|
Forum: General Posted: Sun Jul 04, 2004 4:40 pm Subject: Incompatible types or compiler bug? |
it was answer A) i was missing the obvious.
a matter of a *, because this ofcource isnt a stack object but a pointer...
while im busy spouting my ignorance, allow me to spam these boards with ... |
Topic: Incompatible types or compiler bug? |
Eelco
Replies: 3
Views: 9398
|
Forum: General Posted: Sun Jul 04, 2004 3:19 pm Subject: Incompatible types or compiler bug? |
please have a look at this part of my matrix class:
import vector3;
struct Matrix3{
public Vector3 x,y,z; //column vectors
public Vector3 opMul(Vector3 v){
Vector3 ... |
Topic: Classes and structs |
Eelco
Replies: 1
Views: 8273
|
Forum: General Posted: Fri Jul 02, 2004 7:48 am Subject: Classes and structs |
objects in D are always created and managed by reference. what exactly are the consequences of this?
does this mean a Vector3 class will be slow in inner loops? do i need to abbandon elegance altog ... |
Topic: Accurate timer |
Eelco
Replies: 3
Views: 9353
|
Forum: General Posted: Thu Jul 01, 2004 3:12 am Subject: Accurate timer |
thanks,
i had alreadystumbled across the ASM way. i dont have a clue if im doing it correctly, but it works. this is what i do:
ulong Cycle(){
asm{
rdtsc;
ret;
} ... |
Topic: Accurate timer |
Eelco
Replies: 3
Views: 9353
|
Forum: General Posted: Wed Jun 30, 2004 12:06 pm Subject: Accurate timer |
im looking for some accurate timing functions. date.d and time.d wont do, they have a sucky 10ms resolution, which obviously wont do when timing processes that take maybe lless than a ms.
i know re ... |
Topic: Please help me getting started |
Eelco
Replies: 2
Views: 12458
|
Forum: General Posted: Mon Jun 28, 2004 11:48 am Subject: Please help me getting started |
ok ive found it. going to check it out now, thanks! |
Topic: Please help me getting started |
Eelco
Replies: 2
Views: 12458
|
Forum: General Posted: Mon Jun 28, 2004 10:25 am Subject: Please help me getting started |
hi all,
Im glad ive found this site. seems like a good resource for everything D related.
Ive been programming in several BASIC languages and java for quite some time now, but i wanted more powe ... |
|