Share array element between threads

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Nov 6 03:23:35 PST 2014


Misu:

> void main(string[] args)
> {
> 	class Account
> 	{
> 		public this(int id) { this.id = id; }
> 		int id;
> 	}
> ...

This is not an answer to your question, but note:

void main() {
     class Foo {}
     static class Bar {}
     pragma(msg, __traits(classInstanceSize, Foo));
     pragma(msg, __traits(classInstanceSize, Bar));
}

Output:

12u
8u

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list