Re: DMD2 .deb fails to install on Ubuntu 10.10 – j ust remove »shell«?

2010-12-08 Thread Mike Chaten
I filed this bug report some time ago. http://d.puremagic.com/issues/show_bug.cgi?id=5047 On Wed, Dec 8, 2010 at 1:32 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 12/8/10 5:41 AM, klickverbot wrote: Currently, this is what happens when you try to install the DMD 2 deb

Re: Linking to C

2010-11-03 Thread Mike Chaten
Any options with just one dash afaik (ala -L) will pass through to dmd. On Wed, Nov 3, 2010 at 2:07 AM, scrappylildude s...@yahoo.com wrote: That's great--thanks Nick, Andrei. I tried it and it looks like I haven't configured something right. I'm building a sample project with my program,

Re: Linking to C

2010-11-02 Thread Mike Chaten
How are you compiling linking the files? I've gotten this error before when I forgot to include a file in my compilation (in your case libraw_c_headers) On Tue, Nov 2, 2010 at 8:47 PM, scrappylildude s...@yahoo.com wrote: Hello, New to D, but I am loving it so far. I am having some trouble

/usr/bin/shell Ubuntu 10.10

2010-10-30 Thread Mike Chaten
I filed issue 5047 http://d.puremagic.com/issues/show_bug.cgi?id=5047 when I upgraded to Ubuntu 10.10 from 10.04. The problem revolves around the fact that, by default, 10.10 installs byobu https://launchpad.net/byobu which contains it's own /usr/bin/shell. According to the docs, shell is a

Re: First big PITA in reallife D project

2010-10-19 Thread Mike Chaten
I doubt a new version of dmd will be out until November at the earliest, as there is no dmd beta out at the moment. In the mean time, you should be able to download the latest source code of phobos at http://www.dsource.org/projects/phobos/changeset/head/trunk?old_path=%2Fformat=zip and build the

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 ?