# Code Review: NestedTypes4

**URL:** <https://www.ruby-forum.com/t/code-review-nestedtypes4/167905>\
**Category:** IronRuby\
**Created:** [May 13, 2009, 8:19pm UTC](https://www.ruby-forum.com/t/code-review-nestedtypes4/167905 "2009-05-13T20:19:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grujildo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Post date:** [May 13, 2009, 8:19pm UTC](https://www.ruby-forum.com/t/code-review-nestedtypes4/167905/1 "2009-05-13T20:19:39Z")

</div>

tfpt review “/shelveset:NestedTypes4;REDMOND\tomat”  
Comment :  
(NestedTypes4)

DLR, Python:  
Removes ModuleGlobalWrapper from DLR - it’s not used. Moves  
ModuleGlobalCache from DLR to Python.  
A bit of TypeGroup refactoring.

Ruby:

Adds support from nested types to Ruby - they are exposed as constants  
on the declaring type. Also implements removal of namespace member and  
nested type constants.

Fixes a bug in autoload - the constant being loaded was removed on a  
wrong module.  
Improves displaying of generic types and type groups:  
RubyContext.GetClassName returns a name of the class without generic  
parameters or runtime id. RubyContext.GetClassDisplayName includes both  
(runtime id only for classes from foreign runtime). The latter is used  
for displaying errors and for object inspection.

Ruby test driver: Restores console foreground color to the previous  
value each time it’s changed.

Tomas
