Hi,
I am not able make use of these 3 special tokens to print something.
writefln(gshared: %s,__gshared);
writefln(thread: %s,__thread);
writefln(traits: %s,__traits);
rc\Sample.d(128): expression expected, not '__gshared'
On 2011-05-25 01:29, Matthew Ong wrote:
Hi,
I am not able make use of these 3 special tokens to print something.
writefln(gshared: %s,__gshared);
writefln(thread: %s,__thread);
writefln(traits: %s,__traits);
Matthew Ong:
I am not able make use of these 3 special tokens to print something.
writefln(gshared: %s,__gshared);
writefln(thread: %s,__thread);
writefln(traits: %s,__traits);
They are keywords, so it's like writing:
writefln(traits: %s, for);
Would some like to show me how this is
On 5/25/2011 5:45 PM, bearophile wrote:
Matthew Ong:
I am not able make use of these 3 special tokens to print something.
writefln(gshared: %s,__gshared);
writefln(thread: %s,__thread);
writefln(traits: %s,__traits);
They are keywords, so it's like writing:
writefln(traits: %s, for);
Am 25.05.2011 12:42, schrieb Matthew Ong:
On 5/25/2011 5:45 PM, bearophile wrote:
Matthew Ong:
I am not able make use of these 3 special tokens to print something.
writefln(gshared: %s,__gshared);
writefln(thread: %s,__thread);
writefln(traits: %s,__traits);
They are keywords, so
Am 25.05.2011 10:29, schrieb Matthew Ong:
Hi,
I am not able make use of these 3 special tokens to print something.
writefln(gshared: %s,__gshared);
writefln(thread: %s,__thread);
writefln(traits: %s,__traits);
rc\Sample.d(128):
I think __thread might be an alias for thread local. Maybe it was used
explicitly in D1 since D1 didn't have TLS by default?