Re: How to get dub to work when I have dlang installed in custom directory?

2017-03-03 Thread Jamal via Digitalmars-d-learn
On Friday, 3 March 2017 at 23:22:07 UTC, sarn wrote: On Friday, 3 March 2017 at 20:35:04 UTC, Jamal wrote: I have no idea what is is wrong and or how to fix it. Any help? It would be the alias. When you're running dmd from your shell, you're using an alias that includes a bunch of flags to

How to get dub to work when I have dlang installed in custom directory?

2017-03-03 Thread Jamal via Digitalmars-d-learn
I have successfully compiled and installed dmd, druntime and phobos and installed them all in /opt/dlang/dmd /opt/dlang/druntime /opt/dlang/phobos Everything works, I can compile and run d programs just fine. I use this in my .bashrc to make everything work: # Dlang export

Re: How do you use a non-dmd compiler within dub as default compiler?

2016-05-15 Thread Jamal via Digitalmars-d-learn
On Sunday, 15 May 2016 at 12:42:05 UTC, rikki cattermole wrote: On 16/05/2016 12:38 AM, Jamal wrote: I made this little sdl2 game and written in D, and the project was initialized with dub. When in the project directory and I type: $ dub It fetches all the dependencies and compiles with dmd.

How do you use a non-dmd compiler within dub as default compiler?

2016-05-15 Thread Jamal via Digitalmars-d-learn
I made this little sdl2 game and written in D, and the project was initialized with dub. When in the project directory and I type: $ dub It fetches all the dependencies and compiles with dmd. So, what do I chance so that instead it compiles with ldc2 or even gdc for that matter?

Defining member fuctions of a class or struct out side of the class/struct body?

2016-05-13 Thread Jamal via Digitalmars-d-learn
Warning D newb here. Is it possible to define a member function outside of the class/struct like in C++; class x { body void foo(int* i); }; void x::foo(int* i){ *i++; } Or is it just D-like to define everything inside the class/struct body?