Sorry if anyone got confused. I had the test backwards. It should be if (v==0):
int v;
int getValue() {
   if (v == 0)
     v = computeValue();
   return v;
   }
-------------------------------
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel
This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:21 EDT