Inner classes question

Steve Horne stephenwantshornenospam100 at aol.com
Sun Sep 10 04:27:10 PDT 2006


On Sun, 10 Sep 2006 13:11:47 +0200, Ivan Senji
<ivan.senji_REMOVE_ at _THIS__gmail.com> wrote:

>I2 doesn't have a base class, so that wouldn't work.

Yeah, I'm confusing myself.

The problem, I suspect, is putting 'new' in an initialiser. If it was
in a (dynamic) method, the standard route to the outer-class instance
would apply so it should just work, unless I'm missing something.

Then again, putting 'new' in an initialiser just seems plain wrong to
me anyway - not sure if that's a carry-over from other languages, or a
real concern in D, though.

-- 
Remove 'wants' and 'nospam' from e-mail.



More information about the Digitalmars-d-learn mailing list