digitalmars.D.learn - Nested classes again.
- Markus Dangl (41/41) May 21 2006 Another problem with my nested classes: I expected this program to print...
- Frank Benoit (2/2) May 21 2006 This seems to me, like a bug, which will be fixed in the next dmd versio...
- Markus Dangl (2/4) May 21 2006 Tried it, it didn't help.
- Oskar Linde (3/45) May 23 2006 What compiler and platform? It works for me (DMD 0.156, Linux).
- Deewiant (3/50) May 23 2006 It worked for me, too, with DMD 0.157 under Windows.
- Markus Dangl (2/5) May 24 2006 Oh right, it was DMD 0.157 under Windows, an i was using "inline" too.
Another problem with my nested classes: I expected this program to print "Hello" but it throws a "Error: Access Violation" instead. The only way around this seems to be to redeclare Bar,bar and the constructor in Foo2... What's wrong?
May 21 2006
This seems to me, like a bug, which will be fixed in the next dmd version. Please try to add a default ctor to Foo2. Perhaps this helps.
May 21 2006
Frank Benoit schrieb:This seems to me, like a bug, which will be fixed in the next dmd version. Please try to add a default ctor to Foo2. Perhaps this helps.Tried it, it didn't help.
May 21 2006
Markus Dangl skrev:Another problem with my nested classes: I expected this program to print "Hello" but it throws a "Error: Access Violation" instead. The only way around this seems to be to redeclare Bar,bar and the constructor in Foo2... What's wrong?What compiler and platform? It works for me (DMD 0.156, Linux). /Oskar
May 23 2006
Oskar Linde wrote:Markus Dangl skrev:It worked for me, too, with DMD 0.157 under Windows. However, compiled with -inline, it throws an Access Violation.Another problem with my nested classes: I expected this program to print "Hello" but it throws a "Error: Access Violation" instead. The only way around this seems to be to redeclare Bar,bar and the constructor in Foo2... What's wrong?What compiler and platform? It works for me (DMD 0.156, Linux). /Oskar
May 23 2006
It worked for me, too, with DMD 0.157 under Windows. However, compiled with -inline, it throws an Access Violation.Oh right, it was DMD 0.157 under Windows, an i was using "inline" too. I'll file a bug report.
May 24 2006