Created
March 14, 2012 14:06
-
-
Save trukhinyuri/2036693 to your computer and use it in GitHub Desktop.
Access to backing field
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
| //Configuration file | |
| class ConfigFile { | |
| //The seek to move the cursor to the next line in a binary file of database index | |
| val seek : Long = 99999 | |
| var pointer : Long | |
| get() = $pointer | |
| set(value) { | |
| if (value >= 0) { | |
| $pointer = value | |
| } | |
| else { | |
| $pointer = 0; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment