Re: Class and Interface Fun

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

Re: Class and Interface Fun

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

Re: Class and Interface Fun

2009-01-24 Thread John Reimer
Hello John, Hello tim, On Sun, 25 Jan 2009 16:43:55 +1300, John Reimer 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() { } I g

Re: Class and Interface Fun

2009-01-24 Thread John Reimer
Hello tim, On Sun, 25 Jan 2009 16:43:55 +1300, John Reimer 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() { } I get this erro

Re: Class and Interface Fun

2009-01-24 Thread Tim M
On Sun, 25 Jan 2009 16:43:55 +1300, John Reimer 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() { } I get th

Class and Interface Fun

2009-01-24 Thread John Reimer
With this code: module test5; interface I { void foo(); } class A : I { void foo() { } } class B : A, I { alias A.foo foo; } void main() { } I get this error: class test5.B i

Re: Why does this work?

2009-01-24 Thread Jarrett Billingsley
On Sat, Jan 24, 2009 at 8:38 PM, Mike L. wrote: > > Thanks for your response. Could you tell me what the compiler is linking to > that contains GetEnvironmentStringsA() (and others) and how the compiler > knows to do this? > It's in either user32 or kernel32, and I think DMD always links agains

Re: Why does this work?

2009-01-24 Thread Mike L.
Denis Koroskin Wrote: > Mike L. Wrote: > > > I saved and compiled the code given as getenv.d on the page > > http://www.digitalmars.com/d/archives/digitalmars/D/learn/623.html but I'm > > not entirely sure why it works. > > > > The reasons that I don't understand it are: > > 1. GetEnvironmentS

Re: Why does this work?

2009-01-24 Thread Denis Koroskin
Mike L. Wrote: > I saved and compiled the code given as getenv.d on the page > http://www.digitalmars.com/d/archives/digitalmars/D/learn/623.html but I'm > not entirely sure why it works. > > The reasons that I don't understand it are: > 1. GetEnvironmentStringsA() and the other functions aren'

Why does this work?

2009-01-24 Thread Mike L.
I saved and compiled the code given as getenv.d on the page http://www.digitalmars.com/d/archives/digitalmars/D/learn/623.html but I'm not entirely sure why it works. The reasons that I don't understand it are: 1. GetEnvironmentStringsA() and the other functions aren't mentioned in std/c/window

Re: long compile time 2.023 (few lines of code)

2009-01-24 Thread Saaa
Lol I didn't even check that. Probably because it does compile (and gives a stack overflow at runtime) when you put the allocation within the main. So it still looks like a bug. The compiling should not hang. > > From http://www.digitalmars.com/d/1.0/arrays.html : > > "The total size of a static