Any easy way to check if an object have inherited an interface?

rikki cattermole rikki at cattermole.co.nz
Mon Jul 22 23:35:56 UTC 2019


On 23/07/2019 9:34 AM, solidstate1991 wrote:
> It seems that I've to write my own function that searches in the given 
> object's classinfo.interfaces since I couldn't find anything related in 
> Phobos.

if (Foo foo = cast(Bar)bar) {

}


More information about the Digitalmars-d-learn mailing list