Added new style named arguments.

This commit is contained in:
Christoffer Lerno
2024-08-27 22:31:22 +02:00
parent e795745e43
commit ed5d338a39
42 changed files with 405 additions and 304 deletions

View File

@@ -27,12 +27,12 @@ fn usz! EnumMap.to_format(&self, Formatter* formatter) @dynamic
fn String EnumMap.to_string(&self, Allocator allocator) @dynamic
{
return string::format("%s", *self, .allocator = allocator);
return string::format("%s", *self, allocator: allocator);
}
fn String EnumMap.to_new_string(&self, Allocator allocator = null) @dynamic
{
return string::format("%s", *self, .allocator = allocator ?: allocator::heap());
return string::format("%s", *self, allocator: allocator ?: allocator::heap());
}
fn String EnumMap.to_tstring(&self) @dynamic