Re: Class and Interface Fun

2009-01-25 Thread Tim M
On Mon, 26 Jan 2009 00:18:28 +1300, Denis Koroskin 2kor...@gmail.com wrote: On Sun, 25 Jan 2009 08:38:18 +0300, Tim M a...@b.com wrote: On Sun, 25 Jan 2009 17:56:03 +1300, John Reimer terminal.n...@gmail.com wrote: Hello tim, On Sun, 25 Jan 2009 16:43:55 +1300, John Reimer terminal.n

Re: Class and Interface Fun

2009-01-25 Thread Tim M
On Mon, 26 Jan 2009 00:48:21 +1300, Tim M a...@b.com wrote: On Mon, 26 Jan 2009 00:18:28 +1300, Denis Koroskin 2kor...@gmail.com wrote: On Sun, 25 Jan 2009 08:38:18 +0300, Tim M a...@b.com wrote: On Sun, 25 Jan 2009 17:56:03 +1300, John Reimer terminal.n...@gmail.com wrote: Hello tim

Re: Class and Interface Fun

2009-01-25 Thread Tim M
On Mon, 26 Jan 2009 01:14:10 +1300, Denis Koroskin 2kor...@gmail.com wrote: On Sun, 25 Jan 2009 15:06:23 +0300, Tim M a...@b.com wrote: On Mon, 26 Jan 2009 00:48:21 +1300, Tim M a...@b.com wrote: On Mon, 26 Jan 2009 00:18:28 +1300, Denis Koroskin 2kor...@gmail.com wrote: On Sun, 25

Re: Class and Interface Fun

2009-01-25 Thread Tim M
On Mon, 26 Jan 2009 04:58:57 +1300, John Reimer terminal.n...@gmail.com wrote: Hello tim, On Mon, 26 Jan 2009 01:14:10 +1300, Denis Koroskin 2kor...@gmail.com wrote: On Sun, 25 Jan 2009 15:06:23 +0300, Tim M a...@b.com wrote: On Mon, 26 Jan 2009 00:48:21 +1300, Tim M a...@b.com wrote

Re: Class and Interface Fun

2009-01-24 Thread Tim M
On Sun, 25 Jan 2009 16:43:55 +1300, John Reimer terminal.n...@gmail.com wrote: With this code: module test5; interface I { void foo(); } class A : I { void foo() { } } class B : A, I { alias A.foo foo; } void main() { }

Re: Class and Interface Fun

2009-01-24 Thread Tim M
On Sun, 25 Jan 2009 17:56:03 +1300, John Reimer terminal.n...@gmail.com wrote: Hello tim, On Sun, 25 Jan 2009 16:43:55 +1300, John Reimer terminal.n...@gmail.com wrote: With this code: module test5; interface I { void foo(); } class A : I { void foo()

Re: confused with some_var.dup

2009-01-15 Thread Tim M
On Fri, 16 Jan 2009 20:30:53 +1300, Qian Xu quian...@stud.tu-ilmenau.de wrote: When shall I use some_var.dup and when not? Is there any guidlines? --Qian Yeah when you want one to be different than the other. If the lvalue is a slice then there is no need though.

Re: Foreach problem

2009-01-11 Thread Tim M
On Sun, 11 Jan 2009 20:31:51 +1300, Denis Koroskin 2kor...@gmail.com wrote: Yep that probibly is a slight bug. What I would like to know is why cant I do foreach with primitive types like I can with objects. You can use foreach to iterate over arrays and tuples, if that's what you mean.

Foreach problem

2009-01-10 Thread Tim M
Why is this an error. Dmd wants to make sure that I declare a new variable in the foreach statement and not use an existing one? module test; void main() { int i; int[] nums; foreach(i; nums) { // } } dmd test.d test.d(7): Error:

Re: Foreach problem

2009-01-10 Thread Tim M
On Sun, 11 Jan 2009 15:50:54 +1300, Daniel Keep daniel.keep.li...@gmail.com wrote: Tim M wrote: Why is this an error. Dmd wants to make sure that I declare a new variable in the foreach statement and not use an existing one? module test; void main() { int i; int[] nums

Re: Foreach problem

2009-01-10 Thread Tim M
On Sun, 11 Jan 2009 15:59:26 +1300, Tim M a...@b.com wrote: On Sun, 11 Jan 2009 15:50:54 +1300, Daniel Keep daniel.keep.li...@gmail.com wrote: Tim M wrote: Why is this an error. Dmd wants to make sure that I declare a new variable in the foreach statement and not use an existing one

Re: Foreach problem

2009-01-10 Thread Tim M
On Sun, 11 Jan 2009 16:10:39 +1300, Bill Baxter wbax...@gmail.com wrote: On Sun, Jan 11, 2009 at 12:04 PM, Tim M a...@b.com wrote: On Sun, 11 Jan 2009 15:59:26 +1300, Tim M a...@b.com wrote: Why does it still work for some objects? This works: module test; class

Re: .bat file to help compile easier - dmd/build

2009-01-03 Thread Tim M
No way! On Windows, bud is much better. dsss can't build dlls, for example, which is a blocker for me. It also seems to be based around the flawed concept that you have a small number of build configurations. GC'd memory and DLL just don't go well together. I use C++ for my dlls but D

Re: .bat file to help compile easier - dmd/build

2009-01-03 Thread Tim M
On Sun, 04 Jan 2009 01:40:03 +1300, John Reimer terminal.n...@gmail.com wrote: Hello Don, Tim M wrote: On Sat, 03 Jan 2009 08:17:17 +1300, Michael P. baseball@gmail.com wrote: Okay, so right now, I'm making a small game(Mario) using DAllegro. I use build, and every time, I have

Re: Two Tango container package

2009-01-02 Thread Tim M
On Sat, 03 Jan 2009 17:10:44 +1300, Sam Hu samhu.sa...@gmail.com wrote: I was wondering why there are 2 container package under tango.util.collection ,tango.util.container which some of the libarary are the same,say HashSet,HashMap which just make a bit confuse? Thanks. Container is the

Re: DDL problem

2008-12-28 Thread Tim M
NVM I think I've figured it out. I'll try and get in touch with a dev for the change to be put through. On Sun, 28 Dec 2008 17:16:05 +1300, Tim M a...@b.com wrote: Sorry I should have made myself more clear. Latest d1 (1.038). If you get ddl from trunk and try to build quick example

DDL problem

2008-12-27 Thread Tim M
Hi I would like to use DDL but I couldn't get the latest svn/trunk and quick example to work with latest dmd. I think the syntax of templates has changed since it was last tested.

Re: DDL problem

2008-12-27 Thread Tim M
jarrett.billings...@gmail.com wrote: On Sat, Dec 27, 2008 at 10:43 PM, Tim M a...@b.com wrote: Hi I would like to use DDL but I couldn't get the latest svn/trunk and quick example to work with latest dmd. I think the syntax of templates has changed since it was last tested. D1 or D2?

Re: offsetof

2008-11-07 Thread Tim M
Did you find a sollution? I need to get the offset of a member of a struct so I can port a .h to a .di but dmd complains that the member doesn't exist on the struct. I dont think anyone has ever tried the code at: http://www.digitalmars.com/d/1.0/ctod.html#fieldoffset On Fri, 22 Aug 2008