Charles, I don't understand your thread-safety example. You say that this one:
Sub Example() for i as Integer = 0 to 19 static foo as Integer next End Sub ..could cause unpredictable results, but this one is fine: Sub Example() static foo as Integer for i as Integer = 0 to 19 //code next End Sub As far as I know, the only difference between these examples is that in the first one, the static variable can only be accessed within the loop, while in the second one, it can be accessed anywhere in the method. There is no difference in thread safety that I can see. Can you explain what you're getting at here? Thanks, - Joe P.S. The link in the first message in this thread didn't work for me; in case anybody else wants to follow along, this does seem to work: <http://www.declaresub.com/article/27/static-variables-by-example> -- Joe Strout -- [EMAIL PROTECTED] Verified Express, LLC "Making the Internet a Better Place" http://www.verex.com/ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
