Any example of using these Special Tokens?
dennis luehring
dl.soluz at gmx.net
Wed May 25 04:10:49 PDT 2011
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 it's like writing:
>> writefln("traits: %s", for);
>>
>>
>>> Would some like to show me how this is done??
>>
>> What do you want to do?
>>
>> Bye,
>> bearophile
>
> Looking at if they are run time related debug variables, perhaps
> consider using them within a logging api.
and what is the benefit over using libary functions?
how many of this special vars will come (and pollute the global
namespace...)
More information about the Digitalmars-d-learn
mailing list