Make core library use procedure groupings rather than normal overloading

This commit is contained in:
gingerBill
2017-12-04 22:01:51 +00:00
parent ebb2a9812c
commit f0de994059
16 changed files with 423 additions and 375 deletions
+2 -2
View File
@@ -57,8 +57,8 @@ encode :: proc(d: []u16, s: []rune) -> int {
}
encode :: proc(d: []u16, s: string) -> int {
n := utf8.rune_count(s);
encode_string :: proc(d: []u16, s: string) -> int {
n := utf8.rune_count_from_string(s);
for r in s do if r >= _surr_self do n += 1;
max_n := min(len(d), n);