On 8/28/2011 5:18 PM, Mafi wrote:
dynamicCast: Cast a class to another. This should throw something derived from Error (not Exception) on failure instead of just returning null. If you want null, just use the cast operator. Maybe we should change its name, though. How about checkedCast or downCast?I think, to!someClass(x) works like you want dynamic cast to work.
(Slaps self in forehead.) You're right, I forgot about that. Never mind.