From 1d2e55f53dfab5153dbfd0c03f28cd9daedb3b77 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 6 Apr 2025 19:20:07 -0400 Subject: Allow uninitialized variables when there's a sensible empty value (defaults to empty/zero value) --- examples/http/http.tm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/http') diff --git a/examples/http/http.tm b/examples/http/http.tm index 39cbfd6d..29727e6e 100644 --- a/examples/http/http.tm +++ b/examples/http/http.tm @@ -8,7 +8,7 @@ struct HTTPResponse(code:Int, body:Text) enum _Method(GET, POST, PUT, PATCH, DELETE) func _send(method:_Method, url:Text, data:Text?, headers:[Text]=[] -> HTTPResponse) - chunks : @[Text] = @[] + chunks : @[Text] save_chunk := func(chunk:CString, size:Int64, n:Int64) chunks.insert(inline C:Text { Text$format("%.*s", _$size*_$n, _$chunk) -- cgit v1.2.3