Warning: session_start(): open(/var/lib/php/sessions/sess_l7lpbimjv4kbji03u005tqmv71, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
ifndef SymbolAsString
sclass symbol_Tester {
S text;
*(S *text) {}
public int hashCode() { ret main.hashCode(text); }
public bool equals(O o) {
ret o instanceof Symbol && eq(text, o/Symbol.text);
}
}
static WeakHashMap symbol_map = newWeakHashMap();
endifndef
static Symbol symbol(S s) {
ifdef SymbolAsString
ret null;
endifdef
ifndef SymbolAsString
if (s == null) null;
synchronized(symbol_map) {
// This is a trick that works because of how WeakHashMap compares keys.
O e = call(symbol_map, 'getEntry, symbol_Tester(s));
Symbol sym = e == null ? null : ((WeakReference) e).get();
if (sym == null)
symbol_map.put(sym = Symbol(s, false), Bool.TRUE);
ret sym;
}
endifndef
}