Tom S wrote: > I think it should be done in userland, not built-in. Here's a > proof-of-concept implementation:
I agree and also had a go at it a few months back: http://www.digitalmars.com/d/archives/digitalmars/D/scope_as_template_struct_82104.html What about alignment issues though? I think we need to force that byte array with the class data to have the same alignment restrictions as the class data.