Difference between revisions of "Thread:Talk:Robocode/Keeping AdvancedRobot instance in static field/reply (5)"

From Robowiki
Jump to navigation Jump to search
 
m
Line 1: Line 1:
 
because I’m simply making everything under a static variable, just like lazy singleton.
 
because I’m simply making everything under a static variable, just like lazy singleton.
 +
The field itself is not static at all, but the field containing the field is static and has to be static. Diamond uses this style as well afak

Revision as of 03:33, 21 August 2018

because I’m simply making everything under a static variable, just like lazy singleton. The field itself is not static at all, but the field containing the field is static and has to be static. Diamond uses this style as well afak