feat(stdlib): add String_Chars, String_FromBool, fix Fmt and Net

- String.bux: add String_Chars(s, index) for char-at-index access
- String.bux: add String_FromBool(b) conversion
- Fmt.bux: rewrite with correct stdlib imports (was using non-existent names)
- Net.bux: fix String_Len -> bux_strlen (String_Len not imported)
- All lib modules compile successfully
This commit is contained in:
2026-06-07 18:05:04 +03:00
parent bfe87a8acb
commit 04be9eb400
3 changed files with 104 additions and 36 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ func Net_Connect(fd: int, addr: String, port: int) -> bool {
/* Send data. Returns bytes sent or -1 on error. */
func Net_Send(fd: int, data: String) -> int {
return bux_socket_send(fd, data, String_Len(data) as int);
return bux_socket_send(fd, data, bux_strlen(data) as int);
}
/* Receive up to maxLen bytes. Returns empty string on error/EOF. */