Re: Replacement for C++ Style Implicit casts?

2010-10-19 Thread Mike Chaten
Thanks for all your help! -Mike On Mon, Oct 18, 2010 at 6:21 PM, Simen kjaeraas simen.kja...@gmail.comwrote: Mike Chaten mcha...@gmail.com wrote: I was under the impression that alias this just was shorthand for Class Foo { int x; alias x this; } Foo foo = new Foo foo = 9; // foo.x

Re: Replacement for C++ Style Implicit casts?

2010-10-18 Thread Mike Chaten
, Steven Schveighoffer schvei...@yahoo.com wrote: On Mon, 18 Oct 2010 15:47:40 -0400, Mike Chaten mcha...@gmail.com wrote: In C++ it is possible to declare a class as follows class Foo { Foo(int x) { } } You can then use that constructor to implicitly convert int to Foo. E.g Foo x = 0

Re: DMD2 does not link on windows 7-64bit

2010-09-07 Thread Mike Chaten
If you are trying to compile a library, add -lib to make it not require a main method. On Tue, Sep 7, 2010 at 2:12 PM, OK herrsauro...@lavabit.com wrote: To answer my own post : the problems vanish when I add a main() method. question : how do I automagically add a standard main method ?