On 5/25/11 9:23 AM, Matthew Ong wrote:
On 5/25/2011 9:45 PM, Daniel Gibson wrote:


 >.stringof[7 .. $]
Belonging to which object or variable?

4) __BLOCKNAME__ // perhaps another name, but prints
 >> class/struct/interface/template... name. If is global, print global.
How about this one? The class which the fuction belows

http://www.digitalmars.com/d/archives/digitalmars/D/FUNCTION_implemented_with_mixins_and_mangles_92055.html



---------------------------------------------------------------------------

Use those functions (getuid(), getpid(), etc.) if you need those values.
Why make them look like compile-time special tokens?

It would be even more cool if there is some immutable >RUNTIME< special
tokens:

Defining them as variable makes the code independent from
OS(win32/lin/OSX) API.

Good standard library artifacts make the code independent from OS.

Andrei

Reply via email to