Downcast is the old good name.

"cast" is so vague. I would assume cast<A>(B) means: { return (A)B; }

Yong Li
________________________________
From: Darin Adler<mailto:[email protected]>
Sent: ‎10/‎3/‎2014 3:16 AM
To: WebKit Development<mailto:[email protected]>
Subject: Re: [webkit-dev] Type checking / casting helpers

I suggested the name; my inspiration was the boost::polymorphic_downcast 
function template. I also like the way a name ending with the word cast fits in 
with the family of static_cast, dynamic_cast, and reinterpret_cast.

— Darin
_______________________________________________
webkit-dev mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-dev
_______________________________________________
webkit-dev mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to