On Monday, 5 May 2014 at 04:05:35 UTC, Mark Isaacson wrote:
enum offsetof(string type, string field) = mixin(type ~ "." ~ field ~ ".offsetof");
That's exactly what I'm looking for!!
Andrey via Digitalmars-d-learn Mon, 05 May 2014 04:20:34 -0700
On Monday, 5 May 2014 at 04:05:35 UTC, Mark Isaacson wrote:
enum offsetof(string type, string field) = mixin(type ~ "." ~ field ~ ".offsetof");
That's exactly what I'm looking for!!