From 0b8074154e2671691050bdb3bcb33245625a056c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 4 Apr 2025 17:06:09 -0400 Subject: First working compile of refactor to add explicit typing to declarations and support untyped empty collections and `none`s --- examples/http-server/connection-queue.tm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/http-server/connection-queue.tm') diff --git a/examples/http-server/connection-queue.tm b/examples/http-server/connection-queue.tm index a198f091..362dab7b 100644 --- a/examples/http-server/connection-queue.tm +++ b/examples/http-server/connection-queue.tm @@ -3,7 +3,7 @@ use pthreads func _assert_success(name:Text, val:Int32; inline): fail("$name() failed!") if val < 0 -struct ConnectionQueue(_connections=@[:Int32], _mutex=pthread_mutex_t.new(), _cond=pthread_cond_t.new()): +struct ConnectionQueue(_connections:@[Int32]=@[], _mutex=pthread_mutex_t.new(), _cond=pthread_cond_t.new()): func enqueue(queue:ConnectionQueue, connection:Int32): queue._mutex:lock() queue._connections:insert(connection) -- cgit v1.2.3