How to use interface template? How to model interface template properly in D.

2011-05-27 Thread Matthew Ong
Hi All, The main aim here is to find out how to model similar syntax within D. Due to the nature of the architecture of the library that I have designed in Java and heavily leans towards interface generics. It works well with java. Yes. I am aware about Tuple to allow me to do multiple value

Re: What is the design reasons for Not considering base class overloaded

2011-05-27 Thread Matthew Ong
On 5/25/2011 5:43 PM, bearophile wrote: alias A.foo foo; // ### Why the extra steps is needed for the compiler to 'know' overloaded functions from base classes? Others have already answered. I also suggest you to compile your code using the -w switch when possible. Bye, bearophile That is

Re: How to use interface template? How to model interface template properly in D.

2011-05-27 Thread Jacob Carlborg
On 2011-05-27 07:55, Matthew Ong wrote: Hi All, The main aim here is to find out how to model similar syntax within D. Due to the nature of the architecture of the library that I have designed in Java and heavily leans towards interface generics. It works well with java. Yes. I am aware about

Re: What is the design reasons for Not considering base class overloaded

2011-05-27 Thread Matthew Ong
On 5/27/2011 2:03 PM, Matthew Ong wrote: Would not it be a better keyword such as: class A{ // assuming there is a new keyword of noinherit noinherit void foo(int x){} // all other method can be inherited in A except for this class } Ignore the last message on new noinherit, just remember we

Re: How to use interface template? How to model interface template properly in D.

2011-05-27 Thread Matthew Ong
On 5/27/2011 2:32 PM, Jacob Carlborg wrote: On 2011-05-27 07:55, Matthew Ong wrote: In D the syntax for declaring a template and instantiate a template is not the same. Have a look at the first example of http://www.digitalmars.com/d/2.0/template.htm If don't understand after reading that

Re: How to use interface template? How to model interface template properly in D.

2011-05-27 Thread Jonathan M Davis
On 2011-05-26 23:48, Matthew Ong wrote: On 5/27/2011 2:32 PM, Jacob Carlborg wrote: On 2011-05-27 07:55, Matthew Ong wrote: In D the syntax for declaring a template and instantiate a template is not the same. Have a look at the first example of

Re: How to use interface template? How to model interface template properly in D.

2011-05-27 Thread Matthew Ong
On 5/27/2011 2:48 PM, Matthew Ong wrote: On 5/27/2011 2:32 PM, Jacob Carlborg wrote: On 2011-05-27 07:55, Matthew Ong wrote: Never mind, I found it. http://www.dsource.org/projects/tutorials/wiki/InterfaceTemplateExample -- Matthew Ong email: on...@yahoo.com

Re: How to use interface template? How to model interface template properly in D.

2011-05-27 Thread Matthew Ong
On 5/27/2011 2:48 PM, Matthew Ong wrote: On 5/27/2011 2:32 PM, Jacob Carlborg wrote: Thanks very much. -- Matthew Ong email: on...@yahoo.com

CP command used in the phobos windows makefile

2011-05-27 Thread Andrej Mitrovic
Guys, where did you get the unix cp port from? I don't have it installed, so I can't use make install -fwin32.mak. I've also tried using the one that comes with UnxTools from http://sourceforge.net/projects/unxutils/ , but that one fails with: cp.exe: cannot create regular file

Re: CP command used in the phobos windows makefile

2011-05-27 Thread Dmitry Olshansky
On 27.05.2011 16:06, Andrej Mitrovic wrote: Guys, where did you get the unix cp port from? I don't have it installed, so I can't use make install -fwin32.mak. I've also tried using the one that comes with UnxTools from http://sourceforge.net/projects/unxutils/ , but that one fails with:

Re: CP command used in the phobos windows makefile

2011-05-27 Thread Andrej Mitrovic
You know it'd be great if I could synchronize git with a build system. I mean if I'm switching between branches I'd like to automatically switch to a pre-compiled .lib file so I don't waste time recompiling a branch which was already compiled.

Re: CP command used in the phobos windows makefile

2011-05-27 Thread Johannes Totz
On 27/05/2011 13:06, Andrej Mitrovic wrote: Guys, where did you get the unix cp port from? I don't have it installed, so I can't use make install -fwin32.mak. I've also tried using the one that comes with UnxTools from http://sourceforge.net/projects/unxutils/ , but that one fails with:

newbie windows setup help

2011-05-27 Thread Robert Smith
I am attempting to compile a simple d source file using the http://learn-programming.za.net/learn_d_programming.html site as a guide to learning D programming. dmd2 is installed in D:\D\dmd. When I attempt to compile I get the following error: D:\D\programsdmd first.d object.d: Error: module

Re: newbie windows setup help

2011-05-27 Thread bearophile
Robert Smith: I am attempting to compile a simple d source file using the http://learn-programming.za.net/learn_d_programming.html site as a guide to learning D programming. dmd2 is installed in D:\D\dmd. Installing DMD on Windows is very easy: 1) Download the latest compiler, like dmd

Re: newbie windows setup help (path settings seem correct)

2011-05-27 Thread Robert Smith
Thanks for the reply. Yes, I have the path set with a batch file that opens a command window. A dmd command in this window displays the dmd usage help: DMD32 D Compiler v2.053... and a link command displays: OPTLINK (R) for Win32... What kind of build helper is available for Win32? Robert Smith