<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:mikekaganski@hotmail.com" title="Mike Kaganski <mikekaganski@hotmail.com>"> <span class="fn">Mike Kaganski</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - Redim Preserve for existing arrays is accepted without any index range, but acts differently as if the unchange index ranges are made explicit."
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134712">bug 134712</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>UNCONFIRMED
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>WONTFIX
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - Redim Preserve for existing arrays is accepted without any index range, but acts differently as if the unchange index ranges are made explicit."
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134712#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - Redim Preserve for existing arrays is accepted without any index range, but acts differently as if the unchange index ranges are made explicit."
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134712">bug 134712</a>
              from <span class="vcard"><a class="email" href="mailto:mikekaganski@hotmail.com" title="Mike Kaganski <mikekaganski@hotmail.com>"> <span class="fn">Mike Kaganski</span></a>
</span></b>
        <pre>The code like

<span class="quote">> ReDim Preserve B</span >

gets compiled out (so it can't even have a breakpoint). That happens in
SbiParser::DefVar, where the call to VarDecl naturally sets pDim (the
dimensions list) to nullptr, and then if( pDim ) conditions are false.

I don't think we should change that. To allow copying arrays, it's better to
implement proper ByValue semantics for them (which is allowed in SB, but is not
respected). Additionally, in other BASIC flavors, this is a syntax error (e.g.,
VBA); I don't think we also should make it an error: that could break something
existing, while the status quo is harmless.

Closing WONTFIX. But possibly we should mention the noop variant in the help.</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>