enumerating member offsetofs via foreach over members-tuple
Denis Koroskin
2korden at gmail.com
Fri Nov 14 16:51:32 PST 2008
15.11.08 в 01:47 Frits van Bommel в своём письме писал(а):
> Denis Koroskin wrote:
>> Am I doing something wrong?
>
> As was mentioned, 'm' is just a local variable once inside the loop.
> This works though:
> -----
> foreach (i, m; this.tupleof) {
> writefln(this.tupleof[i].offsetof);
> }
> -----
Ah, you are right. I knew I made a mistake somewhere! Thank you.
More information about the Digitalmars-d
mailing list