- Added `in` operator support
This commit is contained in:
Tristan B. Velloza Kildaire 2024-04-26 22:45:59 +02:00
parent f65b442376
commit e8c510eeaa
1 changed files with 6 additions and 0 deletions

View File

@ -266,6 +266,12 @@ public struct Registry
setAllowOverwrite(allowOverwritingOfEntries);
}
public ConfigEntry* opBinary(string op, string)(string name)
if(op == "in")
{
return getEntry0(name);
}
public bool hasEntry(string name)
{
return getEntry0(name) !is null;