title: Create getter/setter but without a field member
body: <p>In Kotlin you can create a variable that has both a getter and setter:</p>
  
  <pre><code>var mRetrievingConnections: Boolean?
  
  var retrievingConnections: Boolean?
      get() = mRetrievingConnections
      set(value) {
        mRetrievingConnections = value
      }
  </code></pre>
  
  <p>But I am wondering if there is not a way to do this without having to require a private member field. Kotlin states that it has built-in backing fields for setters but how can the getter access this backing field. I am looking for something like this (which isn't allowed):</p>
  
  <pre><code>var retrievingConnections: Boolean?
      get() = field
      set(value) {
      }
  </code></pre>
  
  <p>I find this strange because the setter can access the backing field, so whenever you set the value, it automatically gets stored. But how do I retrieve that value in the getter?</p>