Artifact 72c1e0f374b13246010b25790a2b13dd47360996
- File        
polemy/fresh.d
- 2010-11-21 14:24:33 - part of checkin [3995a5eb6a] on branch trunk - added iikagen pattern match (user: kinaba) [annotate]
 
 
/**
 * Authors: k.inaba
 * License: NYSL 0.9982 http://www.kmonos.net/nysl/
 *
 * Interpreter-wise fresh ID generator.
 */
module polemy.fresh;
import polemy._common;
import core.atomic;
private shared int freshVarId = -1;
/// Generate one fresh variable name
string freshVarName()
{
	return text("$", atomicOp!("+=")(freshVarId, 1));
}