Re: Need help fixing "The linker can't handle *.d.obj" issue

2010-04-07 Thread Daniel Ribeiro Maciel
Aww... Nevermind, it worked. Silly me, forgot to clean CMake cache. Thanks a lot! Daniel Ribeiro Maciel Wrote: > Funny, I couldn't get that to work. I put both variables in my > CMakeDCompiler.cmake.in. > =[ > > Daniel Ribeiro Maciel Wrote: > > > Hey, tha

Re: Need help fixing "The linker can't handle *.d.obj" issue

2010-04-07 Thread Daniel Ribeiro Maciel
Funny, I couldn't get that to work. I put both variables in my CMakeDCompiler.cmake.in. =[ Daniel Ribeiro Maciel Wrote: > Hey, thanks a lot, I'm gonna try that! > > Heromyth Wrote: > > > Daniel Ribeiro Maciel Wrote: > > > > > Hey guys! > &g

Re: Runtime Reflection using Compile Time Reflection

2010-04-04 Thread Daniel Ribeiro Maciel
Cool. I was thinking about something like: auto foo = new Foo(); auto mo = new MetaObject!Foo( foo ); auto returnValue = mo.invoke( "aMethodName", "a param", "more params", 10, 20 ); Best Regards, Daniel

Runtime Reflection using Compile Time Reflection

2010-04-04 Thread Daniel Ribeiro Maciel
Heya ppl! I was wondering if is there anyone working on a Runtime Reflection library using __traits. I am working on one myself, but hey, if someone is already doing it, why reinvent the wheel, right? Best Regads, Daniel

Re: Need help fixing "The linker can't handle *.d.obj" issue

2010-04-03 Thread Daniel Ribeiro Maciel
Hey, thanks a lot, I'm gonna try that! Heromyth Wrote: > Daniel Ribeiro Maciel Wrote: > > > Hey guys! > > > > The linker can't handle *.d.obj files: > > > > http://d.puremagic.com/issues/show_bug.cgi?id=2886 > > > > I really nee

Having problems using __traits

2010-04-03 Thread Daniel Ribeiro Maciel
Hello! I'm currently having this issue using __traits. Can anyone tell me what am I doing wrong, or whether this is a compiler bug or not? Thanks! Source code is attached to this message. S:\Repositorios\tpp\trunk\script.d(15): Error: string expected as second argument of __traits getMember ins

Re: Need help fixing "The linker can't handle *.d.obj" issue

2010-04-02 Thread Daniel Ribeiro Maciel
Oh, nevermind about the source code. Haha. I will keep looking into CMake. Crossing fingers to see this issue fixed though. Thanks. Daniel Ribeiro Maciel Wrote: > Yes, it is sad indeed, cuz I dont know how to instruct CMake to generate > objects using a different naming convention. >

Re: Need help fixing "The linker can't handle *.d.obj" issue

2010-04-02 Thread Daniel Ribeiro Maciel
ter Bright Wrote: > > > Daniel Ribeiro Maciel wrote: > > > Hey guys! > > > > > > The linker can't handle *.d.obj files: > > > > > > http://d.puremagic.com/issues/show_bug.cgi?id=2886 > > > > > > I really need this issue f

Need help fixing "The linker can't handle *.d.obj" issue

2010-04-01 Thread Daniel Ribeiro Maciel
Hey guys! The linker can't handle *.d.obj files: http://d.puremagic.com/issues/show_bug.cgi?id=2886 I really need this issue fixed, so can any of you guys point me in the right direction? Where can I find its source code and where to begin and stuff... It is really ruining my CMake building sc

Re: Traits problem

2009-12-05 Thread Daniel Ribeiro Maciel
, members[i]) )) ); } void main() { exportObject!( Foo, "bla", "foo" )(); } Daniel Ribeiro Maciel Wrote: > Heya! > > Ok, let me explain what I want to do: > > > import std.stdio: writeln; > > class Foo { > float bla() { return 0.

Re: Traits problem

2009-12-04 Thread Daniel Ribeiro Maciel
(getVirtualFunctions, Foo, member) )) ); } Is that possible? Best regards, Daniel bearophile Wrote: > Daniel Ribeiro Maciel: > > Try this: > > import std.stdio: writeln; > > class Foo { > float bla() { return 0.0; } > void foo() {} > } > > void main() {

Re: Building DMD from sources

2009-12-04 Thread Daniel Ribeiro Maciel
Thanks a lot ppl. I got to build it on Linux. Gonna try to build on Windows @ home. Walter Bright Wrote: > Daniel Ribeiro Maciel wrote: > > I'm trying to build it on windows. > > You will need DMC++. It can be built with the free download version of > DMC++, but if you

Traits problem

2009-12-04 Thread Daniel Ribeiro Maciel
Hello! I'm trying to use __traits in the following manner: import std.stdio; import std.traits; class Foo { void bla() { } void foo() { } } int main() { immutable string members[] = [ "bla", "foo" ]; writeln( typeid(typeof(__traits(getVirtualFunctions, Foo, members[0]) )) ); }

Re: Building DMD from sources

2009-12-04 Thread Daniel Ribeiro Maciel
I just wanted coff2omf. I did not try to build dmd usind dmc yet. I was just wondering whether it could be built using mingw. Denis Koroskin Wrote: > On Fri, 04 Dec 2009 21:08:39 +0300, Daniel Ribeiro Maciel > wrote: > > > Well, I tried to download it fro

Re: Building DMD from sources

2009-12-04 Thread Daniel Ribeiro Maciel
libraries? Best Regards, Daniel Denis Koroskin Wrote: > On Fri, 04 Dec 2009 20:43:01 +0300, Daniel Ribeiro Maciel > wrote: > > > Thank you for answering so fast. > > I'll try that. One more thing: I noticed I need to convert VS libraries > > from COFF format to OM

Re: Building DMD from sources

2009-12-04 Thread Daniel Ribeiro Maciel
Best regards, Daniel Denis Koroskin Wrote: > On Fri, 04 Dec 2009 20:34:10 +0300, Daniel Ribeiro Maciel > wrote: > > > Hello! > > > > How do I build DMD from sources? Do I have to buy and use Digital Mars > > C++ compiler only? > > > > Best Regards,

Re: Building DMD from sources

2009-12-04 Thread Daniel Ribeiro Maciel
I'm trying to build it on windows. Alexander Suhoverhov Wrote: > Daniel Ribeiro Maciel writes: > > Hello! > > > > How do I build DMD from sources? Do I have to buy and use > > Digital Mars C++ compiler only? > > > > Best Regards, > > Danie

Building DMD from sources

2009-12-04 Thread Daniel Ribeiro Maciel
Hello! How do I build DMD from sources? Do I have to buy and use Digital Mars C++ compiler only? Best Regards, Daniel