enum detection

Jack Applegame japplegame at gmail.com
Thu Nov 22 22:54:00 PST 2012


On Thursday, 22 November 2012 at 17:36:03 UTC, Kenji Hara wrote:
> Actual field might have `offsetof` builtin property.
>
> (not tested)
>   static if (is(typeof(mixin("A."~ident~".offsetof")))) {}

Yes, it works! Thanks.



More information about the Digitalmars-d-learn mailing list