Any example of using these Special Tokens?

2011-05-25 Thread 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): expression expected, not '__gshared'

Re: Any example of using these Special Tokens?

2011-05-25 Thread Jonathan M Davis
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);

Re: Any example of using these Special Tokens?

2011-05-25 Thread bearophile
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

Re: Any example of using these Special Tokens?

2011-05-25 Thread 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 it's like writing: writefln(traits: %s, for);

Re: Any example of using these Special Tokens?

2011-05-25 Thread dennis luehring
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

Re: Any example of using these Special Tokens?

2011-05-25 Thread dennis luehring
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):

Re: Any example of using these Special Tokens?

2011-05-25 Thread Andrej Mitrovic
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?