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

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

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't

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. GetEnvironmentStringsA() and

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

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 John Reimer
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() { } } class B : A, I { alias A.foo foo; } void main() { }

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 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: Class and Interface Fun

2009-01-24 Thread John Reimer
Hello tim, 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 {