Any way to tell if an object is inside another class?

Ruby The Roobster michaeleverestc79 at gmail.com
Mon Sep 28 12:00:50 UTC 2020


On Monday, 28 September 2020 at 11:40:40 UTC, k2aj wrote:
> pragma(msg, hasFieldOfType!(T, int));  //false
> pragma(msg, hasFieldOfType!(T, test)); //true

Not exactly what I meant. I more of meant is there a way to check 
if a test object is a member variable, not if it is in a 
particular class.


More information about the Digitalmars-d-learn mailing list