On 2/17/18 9:59 AM, Andrei Alexandrescu wrote:
On 02/17/2018 09:03 AM, Steven Schveighoffer wrote:
I found this also works:

static foreach(alias x; S.tupleof)
{
    writeln(x.offsetof);
}

Yes, the implementation uses offsetof.


I guess I'm just confused based on the statement "the builtin .tupleof ... [omits] the essential information of field offsets."

What is this construct giving us that .tupleof doesn't?

-Steve

Reply via email to