Last active
August 29, 2015 14:19
-
-
Save andrew-dixon/d424e56bda1823a26316 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Person | |
component { | |
if(isNull(static.instanceCount)) | |
static.instanceCount=1; | |
else | |
static.instanceCount++; | |
public static numeric function personInstancesCreated() { | |
return isNull(static.instanceCount))?0:static.instanceCount; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment