[Tutor] rationale for nested classes?

Kent Johnson kent37 at tds.net
Mon Aug 17 19:33:36 CEST 2009


On Mon, Aug 17, 2009 at 1:12 PM, Mac Ryan<quasipedia at gmail.com> wrote:

> Finally, I somewhere read that embedded declarations are much faster
> than external ones in being referenced. So, if performance is an issue,
> maybe embedding one class within another one might bring you some
> benefit rather than having an object instantiated from the first class
> having to reference a class which is external to its generating one.
> [Hope that is understandable... English is not my first language... :)]

*Local* variables are faster than variables that must be looked up.
Nested classes would not qualify for this.

Kent


More information about the Tutor mailing list