<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - VBA function parameter is passed by reference by default"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=101631#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - VBA function parameter is passed by reference by default"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=101631">bug 101631</a>
              from <span class="vcard"><a class="email" href="mailto:erack@redhat.com" title="Eike Rathke <erack@redhat.com>"> <span class="fn">Eike Rathke</span></a>
</span></b>
        <pre>Normally (...) for user defined functions that are invoked as spreadsheet
functions, yes.

Now it gets complicated: for whatever reason (I don't know the history behind
that specific VBA implementation) if there is
Option VBASupport 1
which here is the case then a XCellRange object is passed for cell references.
That indeed allows BASIC to modify the cell. It should not and can result in
undesired side effects, like here even Err:522 circular references being
detected because the cell value modified triggers another recalc that runs into
a currently being calculated cell.

Changing stableford() to not modify its score argument gets rid of all side
effects.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>