能否像這樣開始線程不是很好嗎?你喜歡這種想法嗎? (關於主題)
Sub DoStuff()
Using MyThead = New Threading.Thread()
'Do stuff on MyThread.
End Using
End Sub
這是更少的代碼編寫和看起來更好比:
Sub DoStuff()
Dim MyThread As New Threading.Thread(AddressOf DoStuffThread)
MyThread.Start()
End Sub
Sub DoStuffThread()
'Do Stuff
End Sub
或者Java內部類,或C++ 0x lambdas或LISP,或者... – 2010-02-23 00:47:24