https://issues.dlang.org/show_bug.cgi?id=12100
--- Comment #7 from Andrej Mitrovic <[email protected]> --- (In reply to monarchdodra from comment #4) > (In reply to bearophile_hugs from comment #3) > > (In reply to Andrej Mitrovic from comment #1) > > > How about __uniqueID, which would create a unique string ID? > > > > Yes, a progressive integer is enough. > > Well, it still has to be unique cross-compilation run: If you compile > several different objects differently, then the integer won't be unique. Hmm.. I don't know about that. Really all I wanted was: auto a = __uniqueID; // "asdf01" auto b = __uniqueID; // "asdf02" It's just something that's incremented internally, but this can only be done during that compilation run. I'm not sure whether this would cause any problems. DMD already has something like this that it uses internally, but at runtime (of the DMD executable), Lexer::uniqueId. --
