Any chance to avoid monitor field in my class?

John Colvin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu May 8 13:57:41 PDT 2014


On Wednesday, 7 May 2014 at 14:44:57 UTC, Yuriy wrote:
> Hello, is there a way of reducing size of an empty class to 
> just vtbl? I tried to declare it as extern(C++) which works, 
> but has a nasty side effect of limited mangling.

Just a general FYI:

Classes are relatively heavyweight in D. struct-based approaches 
are often favoured, as can be seen across the more heavily 
developed parts of phobos.


More information about the Digitalmars-d-learn mailing list