sizeof expanded in such way that it takes implicit "this" instead of actual member, such behavior introduces hard to find bugs like that example
struct Data
{
void* data;
int len;
byte[32] buf;
void reset() {
memset(buf.ptr, 0, typeof(this).sizeof); // <- oops, last argument should be buf.sizeof
}
}
sizeof expanded in such way that it takes implicit "this" instead of actual member, such behavior introduces hard to find bugs like that example