Re: New to D: Building multiple files

2009-03-29 Thread chris
Yea I just realized it follows the directory structure and not some arbitrary system I made up. Thanks for the .config info, I was just putting one together of similar structure, this'll absolutely help. Much appreciated

Re: New to D: Building multiple files

2009-03-29 Thread Mike Parker
chris wrote: Alright so I'm not too familiar with building D or having to build multiple files from the command line (Java usually takes care of that). Basically I have a small game I put together as a test project. Here's the structure: clo/clo.d clo/Main.d clo/common/GameState.d clo is in mo

0.8899633 I Want To Look In Here ... 0.1743141

2009-03-29 Thread iwantsex
0.5868409 I Want To Look In Here ... 0.3492606 0.8899633 Now Visit http://www.clicklinknow.com/dating/ 0.1743141

Re: loop through specific class members

2009-03-29 Thread Trass3r
BCS schrieb: Hello Sergey, but this doesn't: template Tuple(T...) { alias T Tuple; } void foo() { foreach (a; Tuple!("a", "b", "c")) pragma(msg, a); } $ dmd -c test.d test.d(8): Error: string expected for message, not 'a' test.d(8): Error: string expected for message, not 'a' test.d(8): Error:

Re: New to D: Building multiple files

2009-03-29 Thread Trass3r
chris schrieb: The file clo.d is in module clo; while GameState is in module slo.common; you probably mean it is in package clo. Also thanks for the link, I was going to ask about .conf files. > You're welcome.

Re: New to D: Building multiple files

2009-03-29 Thread chris
The file clo.d is in module clo; while GameState is in module slo.common; I just import clo; and import clo.common; when using stuff in either of those files, I hope that's correct. Also thanks for the link, I was going to ask about .conf files.

Re: -profile and threaded code

2009-03-29 Thread David Ferenczi
BCS wrote: > Hello BCS, > >> I have a program that runs an "easily" parallelizable loop. When I run >> it as a single thread it only takes about 10% longer than 2 threads >> (on a dual-core). I'm trying to track down the lossed time and am >> wondering if turning on -profile is even worth looking

Re: const argument

2009-03-29 Thread TSalm
Le Sat, 28 Mar 2009 17:52:54 +0100, TSalm a écrit: Le Sat, 28 Mar 2009 12:21:52 +0100, Jarrett Billingsley a écrit: On Sat, Mar 28, 2009 at 6:12 AM, TSalm wrote: Hello, Is there a way to specifie a constant argument ( I would say an argument for which his value is evaluate at compile

Re: New to D: Building multiple files

2009-03-29 Thread Trass3r
How do you import the modules? You must specify the correct name, i.e. import clo.clo; Oh and you should get familiar with the dsss.conf file. This is the way you normally build your project. http://www.dsource.org/projects/dsss/wiki/DSSSForSoftwareEngineers

Re: New to D: Building multiple files

2009-03-29 Thread torhu
On 29.03.2009 17:04, chris wrote: Alright so I'm not too familiar with building D or having to build multiple files from the command line (Java usually takes care of that). Basically I have a small game I put together as a test project. Here's the structure: clo/clo.d clo/Main.d clo/common/Game

New to D: Building multiple files

2009-03-29 Thread chris
Alright so I'm not too familiar with building D or having to build multiple files from the command line (Java usually takes care of that). Basically I have a small game I put together as a test project. Here's the structure: clo/clo.d clo/Main.d clo/common/GameState.d clo is in module clo , whil