[Swift-devel] UnresolvedType

Mihael Hategan hategan at mcs.anl.gov
Tue May 27 17:38:43 CDT 2008


On Tue, 2008-05-27 at 22:25 +0000, Ben Clifford wrote:
> There is a class, UnresolvedType, that appears to be used only as a parent 
> class to TypeImpl (which all serves to implement the Type interface).
> 
> I'd guess that comes from some earlier interest in having the type system 
> more abstracted than it actually is; but that is from before I worked on 
> this code.
> 
> I'd be interested to know what the intention was.

I think it's used as a placeholder before full type resolution is made.
The point was that types may not be built in the exact order of the
hierarchy, so an extra step of resolving unresolved types needs to be
performed after all types are build. I.e. a two-pass process.

> 




More information about the Swift-devel mailing list