Re: Is it reasonable to learn D

2011-06-14 Thread Lloyd Dupont
Too late! :P I have been inspired by the simplicity of D and DGui. Never happened before with earlier C++ experiments... my loss! Jose Armando Garcia wrote in message news:mailman.906.1308016642.14074.digitalmars-d-le...@puremagic.com... On Mon, Jun 13, 2011 at 6:33 AM, Lloyd Dupont

need some template help!

2011-06-14 Thread Lloyd Dupont
I'm writing some manual reflection (a bit more automatism will come later, thanks to __traits and mixin)(hopefully) There are a few problems with my implementation so far... - First the implementation: system.reflection.member.d = module system.reflection.member; public: public enum

strange compiler (linker) error

2011-06-14 Thread Lloyd Dupont
I have DMD2.053, on Windows. I just moved my folder around. I compile with the following command line: == dmd -lib -g -unittest -debug -w -wi -X -XfDebug\dinstall.json -ofDebug\dinstall.lib -deps=Debug\dinstall.dep -map Debug\dinstall.map -L/NOMAP @Debug\dinstall.build.rsp == I got

Re: introspection experiment

2011-06-14 Thread Adam D. Ruppe
While my code is ugly as sin, it might be useful to look at the prepareReflection function in my web.d http://arsdnet.net/dcode/web.d It uses the derived members trait to loop through them all, and create a runtime delegate that converts a string hash into it's arguments and it's return value

Re: Undefined function, even though imported

2011-06-14 Thread Trass3r
Am 14.06.2011, 02:43 Uhr, schrieb Loopback elliott.darf...@gmail.com: Thanks for all the answers! Seems like rdmd did the trick. I don't see why this isn't built in to dmd though No one does ;) I've also stumbled upon an additional error with the win32 DirectX bindings, but this seems D

It's dsss live ?

2011-06-14 Thread Zardoz
I'm learning D2, and puxxled when I see that something usefull like dsss, looks that not have any updte for too long time. In his SVN, show that not have any update in years!!! (or I'm blind). It's dsss dead ??

Re: It's dsss live ?

2011-06-14 Thread Robert Clipsham
On 14/06/2011 18:30, Zardoz wrote: I'm learning D2, and puxxled when I see that something usefull like dsss, looks that not have any updte for too long time. In his SVN, show that not have any update in years!!! (or I'm blind). It's dsss dead ?? dsss hasn't been updated in years, you are

Re: Is there any convenient CopyMemory function in Phobos?

2011-06-14 Thread Andrej Mitrovic
On 6/14/11, Johannes Pfau s...@example.com wrote: The druntime C bindings follow the names of the C header files. memcpy is in 'string.h' in C -- 'core.stdc.string' in D. I assume the reason for this was because C requires strcpy and memcpy all the time when copying strings?

Shared/const/immutable does not propagate to hash keys

2011-06-14 Thread Andrej Mitrovic
shared int[int] AA; shared int[] arr; void main() { arr = AA.keys; } Error: cannot implicitly convert expression (AA.keys()) of type int[] to shared(int[]) Workaround: shared int[shared(int)] AA; shared int[] arr; void main() { arr = AA.keys; } Shouldn't shared propagate to the

Re: Undefined function, even though imported

2011-06-14 Thread Loopback
Well, I solved the linker error by specifying imports in the .def file. The pathetic thing was that the def file was invalid just because I had a newline, or at least it worked without it. So my final .def file looks like this: EXETYPE NT SUBSYSTEM WINDOWS IMPORTS _Direct3DCreate9@4 =

Re: It's dsss live ?

2011-06-14 Thread Nick Sabalausky
Zardoz luis.panad...@gmail.com wrote in message news:it8g8k$1kbo$1...@digitalmars.com... And bud, rebuild and others Any recomendation or what are live actualy and works with D2 ? rdmd It's included with DMD, but I'd highly recommend grabbing the latest version off of GitHub, which has

Re: Shared/const/immutable does not propagate to hash keys

2011-06-14 Thread Jonathan M Davis
On 2011-06-14 13:11, Andrej Mitrovic wrote: shared int[int] AA; shared int[] arr; void main() { arr = AA.keys; } Error: cannot implicitly convert expression (AA.keys()) of type int[] to shared(int[]) Workaround: shared int[shared(int)] AA; shared int[] arr; void main() {

Re: Shared/const/immutable does not propagate to hash keys

2011-06-14 Thread Andrej Mitrovic
Right, right, I forgot all about that keys are immutable by default (or should be). This makes perfect sense now, thanks for the reality slap. :p