Signature
void DValue::operator=(String v) void DValue::operator=(f64 v) void DValue::operator=(void* v) void DValue::operator=(DValue v) void DValue::operator=(StringMap v)
Parameters
v : assigned value
return value : none
Assignment overloads forward to the matching set(...) overloads. They are the normal concise way to write string, number, pointer, DValue, and StringMap values. Boolean values should use set_bool() to avoid overload ambiguity.
Example
DValue row; row["name"] = "Ada"; row["role"] = "engineer"; print(row["name"].to_string(), " / ", row["role"].to_string(), "\n");
Output
Ada / engineer